Final stand

This commit is contained in:
Damillora 2019-10-05 03:00:48 +07:00
parent 6b5bdb2449
commit b724edf7f4
2 changed files with 7 additions and 3 deletions

1
.gitignore vendored
View File

@ -69,6 +69,7 @@ typings/
# nuxt.js build output
.nuxt
.nuxt*
# Nuxt generate
dist

View File

@ -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")
}