From e2f1495a33011793f9885d7090b145e8d5988bce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 22 Jan 2025 17:54:17 +0100 Subject: [PATCH] fix(deploy): respect dotenv for build command --- src/commands/deploy.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/deploy.mjs b/src/commands/deploy.mjs index bd4dcb0..16c5faf 100644 --- a/src/commands/deploy.mjs +++ b/src/commands/deploy.mjs @@ -117,7 +117,7 @@ export default defineCommand({ if (args.dotenv) { nuxiBuildArgs.push(`--dotenv=${args.dotenv}`) } - await execa({ stdio: 'inherit', preferLocal: true, cwd })`nuxi build ${nuxiBuildArgs}` + await execa({ stdio: 'inherit', preferLocal: true, cwd, extendEnv: false, env: {} })`nuxi build ${nuxiBuildArgs}` .catch((err) => { if (err.code === 'ENOENT') { consola.error('`nuxt` is not installed, please make sure that you are inside a Nuxt project.')