fix: h5
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 1m0s

This commit is contained in:
luo
2026-07-03 10:20:09 +08:00
parent 1f058b3f4d
commit 8cb820c9f9
2 changed files with 3 additions and 2 deletions

View File

@@ -17,8 +17,9 @@ export default defineConfig(({ command, mode }): UserConfig => {
console.log('环境变量 env -> ', env);
const isBuild = process.env.NODE_ENV === 'production';
const base = ['development', 'test'].includes(mode) ? '/h5/' : '/';
return {
base: '/h5/',
base,
// 自定义env目录
envDir: './env',
resolve: {