fix: NODE_ENV is incorrect in vite 4.x
This commit is contained in:
parent
6676f60aae
commit
d086e0d51a
|
@ -98,9 +98,7 @@ export async function resolveConfig(
|
|||
|
||||
config.mode = mode
|
||||
|
||||
if (mode === 'production') {
|
||||
process.env.NODE_ENV = 'production'
|
||||
}
|
||||
process.env.NODE_ENV = defaultMode
|
||||
|
||||
let userConfig: UserConfig | undefined
|
||||
let configFileDependencies: string[] = []
|
||||
|
|
Loading…
Reference in a new issue