mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +00:00
env: Add NUXT_ROOT_DIR env to work with pm2
This commit is contained in:
parent
14e608bf43
commit
17275d52df
@ -11,7 +11,7 @@ const esm = require('esm')(module, {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const getRootDir = argv => resolve(argv._[0] || '.')
|
const getRootDir = argv => resolve(process.env.NUXT_ROOT_DIR || argv._[0] || '.')
|
||||||
const getNuxtConfigFile = argv => resolve(getRootDir(argv), argv['config-file'])
|
const getNuxtConfigFile = argv => resolve(getRootDir(argv), argv['config-file'])
|
||||||
|
|
||||||
exports.nuxtConfigFile = getNuxtConfigFile
|
exports.nuxtConfigFile = getNuxtConfigFile
|
||||||
|
Loading…
Reference in New Issue
Block a user