fix: bug
Some checks failed
构建并部署前端到测试环境 / build-and-deploy (push) Failing after 8s

This commit is contained in:
luo
2026-07-03 09:27:24 +08:00
parent 4226824be9
commit 95d3df5803
4 changed files with 490 additions and 242 deletions

View File

@@ -17,14 +17,12 @@ server {
add_header Content-Type text/plain;
}
location /h5/ {
location / {
alias /usr/share/nginx/html/;
index index.html;
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";