Final stand
This commit is contained in:
parent
6b5bdb2449
commit
b724edf7f4
1
.gitignore
vendored
1
.gitignore
vendored
@ -69,6 +69,7 @@ typings/
|
||||
|
||||
# nuxt.js build output
|
||||
.nuxt
|
||||
.nuxt*
|
||||
|
||||
# Nuxt generate
|
||||
dist
|
||||
|
@ -1,4 +1,6 @@
|
||||
require('dotenv').config()
|
||||
require('dotenv').config({ path: process.env.THEME ? ".env."+process.env.THEME : ".env"})
|
||||
|
||||
console.log("We are running "+process.env.THEME+" theme");
|
||||
|
||||
module.exports = {
|
||||
mode: 'universal',
|
||||
@ -51,7 +53,7 @@ module.exports = {
|
||||
** Nuxt.js modules
|
||||
*/
|
||||
modules: [
|
||||
'@nuxtjs/dotenv',
|
||||
['@nuxtjs/dotenv', { filename: process.env.THEME ? ".env."+process.env.THEME : ".env" }],
|
||||
],
|
||||
/*
|
||||
** Build configuration
|
||||
@ -72,5 +74,6 @@ module.exports = {
|
||||
},
|
||||
serverMiddleware: [
|
||||
|
||||
]
|
||||
],
|
||||
buildDir: '.nuxt.'+(process.env.THEME || "yuriko")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user