feat(vite.config): 添加 CI 环境变量日志输出
This commit is contained in:
@@ -13,6 +13,11 @@ export default defineConfig(async (configEnv) => {
|
||||
|
||||
const isBuild = command === 'build';
|
||||
const env = loadEnv(mode, process.cwd());
|
||||
if (process.env.CI) {
|
||||
for (const [key, value] of Object.entries(env)) {
|
||||
consola.info(`[vite.config.ts] env: ${key}: ${value}`);
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
base: env.VITE_APP_BASE,
|
||||
|
||||
Reference in New Issue
Block a user