Revert "env: Add NUXT_ROOT_DIR env to work with pm2"

This reverts commit 17275d52df.
This commit is contained in:
Sébastien Chopin 2018-09-06 14:35:51 +02:00
parent 17275d52df
commit baaf67def6

View File

@ -11,7 +11,7 @@ const esm = require('esm')(module, {
}
})
const getRootDir = argv => resolve(process.env.NUXT_ROOT_DIR || argv._[0] || '.')
const getRootDir = argv => resolve(argv._[0] || '.')
const getNuxtConfigFile = argv => resolve(getRootDir(argv), argv['config-file'])
exports.nuxtConfigFile = getNuxtConfigFile