fix:tz
All checks were successful
Build and Deploy Front / deploy (push) Successful in 5m54s

This commit is contained in:
xiaolipro 2026-09-07 15:56:06 +08:00
parent c7a571e8e9
commit 4eae38763a
2 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,7 @@ npm-debug.log*
pnpm-debug.log*
docs
IDE*
# 勿写 IDE*:会误伤官网目录「IDE官网」,导致 / 探针 404
xhs-agent-desktop
**/*.md
!src/**/*.md

View File

@ -11,7 +11,8 @@ server {
root /usr/share/nginx/html;
location = / {
try_files /site/index.html =404;
# 官网优先;缺失时回退 SPA,避免 readiness 探针 404
try_files /site/index.html /index.html =404;
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
add_header Expires "0";