移除暴露的过多环境变量
This commit is contained in:
parent
b3300e3939
commit
b3d011a1f0
|
@ -24,9 +24,9 @@ export default defineConfig(({ command, mode }: ConfigEnv): UserConfig => {
|
||||||
//define global var
|
//define global var
|
||||||
GLOBAL_STRING: JSON.stringify('i am global var from vite.config.js define'),
|
GLOBAL_STRING: JSON.stringify('i am global var from vite.config.js define'),
|
||||||
GLOBAL_VAR: { test: 'i am global var from vite.config.js define' },
|
GLOBAL_VAR: { test: 'i am global var from vite.config.js define' },
|
||||||
'import.meta.env.TAG_TIMESTAMP': process.env.TAG_TIMESTAMP,
|
'import.meta.env.TAG_TIMESTAMP': JSON.stringify(process.env.TAG_TIMESTAMP),
|
||||||
'import.meta.env.BUILD_DISPLAY_NAME': process.env.BUILD_DISPLAY_NAME,
|
'import.meta.env.BUILD_DISPLAY_NAME': JSON.stringify(process.env.BUILD_DISPLAY_NAME),
|
||||||
'import.meta.env.GIT_COMMIT': process.env.GIT_COMMIT
|
'import.meta.env.GIT_COMMIT': JSON.stringify(process.env.GIT_COMMIT)
|
||||||
},
|
},
|
||||||
clearScreen: false, //设为 false 可以避免 Vite 清屏而错过在终端中打印某些关键信息
|
clearScreen: false, //设为 false 可以避免 Vite 清屏而错过在终端中打印某些关键信息
|
||||||
server: {
|
server: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user