方案: - next.config.ts 构建时注入 NEXT_PUBLIC_BUILD_TIME 时间戳 - 新增 /api/version 路由,返回服务器当前 build 时间戳 - DeployGuard 组件每 3 分钟轮询 /api/version, 发现版本变化立即 window.location.reload(),用户完全无感知 - global-error / admin error 边界仅做最后兜底(静默 reload) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| nginx | ||
| public | ||
| src | ||
| .dockerignore | ||
| .env.development | ||
| .env.production | ||
| .gitignore | ||
| DEPLOY.md | ||
| Dockerfile | ||
| deploy.sh | ||
| docker-compose.yml | ||
| next.config.ts | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||