merga all environment variables into nuxt.env

This commit is contained in:
Moriz Wahl 2021-03-19 11:33:39 +01:00
parent e54763cddf
commit 68c8ab9e3f
3 changed files with 3 additions and 5 deletions

View File

@ -31,7 +31,7 @@
import links from '~/constants/links.js'
export default {
data() {
return { links, version: `v${this.$env.RELEASE}` }
return { links, version: `v${this.$env.VERSION}` }
},
}
</script>

View File

@ -27,9 +27,7 @@ export default {
},
env: {
RELEASE: CONFIG.VERSION,
PUBLIC_REGISTRATION: CONFIG.PUBLIC_REGISTRATION,
INVITE_REGISTRATION: CONFIG.INVITE_REGISTRATION,
...CONFIG,
// pages which do NOT require a login
publicPages: [
'login',