use GANCIO_DATA env

This commit is contained in:
lesion 2021-10-21 20:49:49 +02:00
parent 87ec9c579d
commit cc5011b940
No known key found for this signature in database
GPG key ID: 352918250B012177
2 changed files with 6 additions and 7 deletions

View file

@ -54,9 +54,10 @@ module.exports = {
*/ */
modules: [ modules: [
// Doc: https://axios.nuxtjs.org/usage // Doc: https://axios.nuxtjs.org/usage
'./@nuxtjs/axios', '@nuxtjs/axios',
'./@nuxtjs/auth', '@nuxtjs/auth',
// ['nuxt-express-module', { expressPath: 'server/', routesPath: 'server/routes' }] ['nuxt-express-module', { expressPath: 'server/', routesPath: 'server/routes' }],
'@/server/initialize.server.js'
], ],
/* /*
@ -92,12 +93,10 @@ module.exports = {
} }
} }
}, },
buildModules: [ buildModules: [
'nuxt-build-optimisations', 'nuxt-build-optimisations',
'@nuxtjs/vuetify', '@nuxtjs/vuetify',
['nuxt-express-module', { expressPath: 'server/', routesPath: 'server/routes' }], // ['nuxt-express-module', { expressPath: 'server/', routesPath: 'server/routes' }],
'@/plugins/initialize.server.js'
], ],
vuetify: { vuetify: {
defaultAssets: false, defaultAssets: false,

View file

@ -2,7 +2,7 @@
const pkg = require('../package.json') const pkg = require('../package.json')
const path = require('path') const path = require('path')
process.env.cwd = path.resolve('./') process.env.cwd = process.env.GANCIO_DATA || path.resolve('./')
process.chdir(path.resolve(__dirname, '..')) process.chdir(path.resolve(__dirname, '..'))