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

View file

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