fix(nuxt): replace process.dev in nitro bundle (#5852)

This commit is contained in:
Anthony Fu 2022-07-12 20:32:07 +08:00 committed by GitHub
parent 46c48de98e
commit 135dfdf73b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: []