feat(vite.config): 添加 CI 环境变量日志输出
Some checks failed
CI/CD Pipeline / build-and-deploy (push) Has been cancelled
CI/CD Pipeline / playwright (push) Has been cancelled

This commit is contained in:
严浩
2025-10-30 22:32:53 +08:00
parent 5a196564d0
commit d6e05a8b44
2 changed files with 5 additions and 2 deletions

View File

@@ -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,