From baaf67def67e79608d6917a9e5734cc0c6ab8497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 6 Sep 2018 14:35:51 +0200 Subject: [PATCH] Revert "env: Add NUXT_ROOT_DIR env to work with pm2" This reverts commit 17275d52dff6b43d5bb5ce6bc0ac36c9323a02f9. --- bin/common/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/common/utils.js b/bin/common/utils.js index fed96bb94f..b55e5ee48d 100644 --- a/bin/common/utils.js +++ b/bin/common/utils.js @@ -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