mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
fix(nitro): support process.dev
#3601)
This commit is contained in:
parent
7650f6c57d
commit
8c6af7da7a
@ -159,6 +159,7 @@ export const getRollupConfig = (nitroContext: NitroContext) => {
|
||||
...Object.fromEntries([';', '(', '{', '}', ' ', '\t', '\n'].map(d => [`${d}global.`, `${d}globalThis.`])),
|
||||
'process.server': 'true',
|
||||
'process.client': 'false',
|
||||
'process.dev': String(nitroContext._nuxt.dev),
|
||||
'process.env.NUXT_NO_SSR': JSON.stringify(!nitroContext._nuxt.ssr),
|
||||
'process.env.NUXT_STATIC_BASE': JSON.stringify(nitroContext._nuxt.staticAssets.base),
|
||||
'process.env.NUXT_STATIC_VERSION': JSON.stringify(nitroContext._nuxt.staticAssets.version),
|
||||
|
Loading…
Reference in New Issue
Block a user