From 135dfdf73bc91223074855e7830ce6b9c3cb3132 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Tue, 12 Jul 2022 20:32:07 +0800 Subject: [PATCH] fix(nuxt): replace `process.dev` in nitro bundle (#5852) --- packages/nuxt/src/core/nitro.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nuxt/src/core/nitro.ts b/packages/nuxt/src/core/nitro.ts index f1e383a54b..0d7d847050 100644 --- a/packages/nuxt/src/core/nitro.ts +++ b/packages/nuxt/src/core/nitro.ts @@ -94,7 +94,8 @@ export async function initNitro (nuxt: Nuxt) { ...nuxt.options.alias }, replace: { - 'process.env.NUXT_NO_SSR': nuxt.options.ssr === false + 'process.env.NUXT_NO_SSR': nuxt.options.ssr === false, + 'process.dev': nuxt.options.dev }, rollupConfig: { plugins: []