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

This commit is contained in:
luo
2026-07-03 10:13:54 +08:00
parent ced2344d14
commit 1f058b3f4d
2 changed files with 6 additions and 3 deletions

View File

@@ -17,12 +17,14 @@ server {
add_header Content-Type text/plain;
}
location / {
alias /usr/share/nginx/html/;
index index.html;
location /h5/ {
try_files $uri $uri/ /index.html;
}
location = / {
return 301 /h5/;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, immutable";

View File

@@ -18,6 +18,7 @@ export default defineConfig(({ command, mode }): UserConfig => {
const isBuild = process.env.NODE_ENV === 'production';
return {
base: '/h5/',
// 自定义env目录
envDir: './env',
resolve: {