Debug / Build Info
用于确认部署是否生效。每次 Vercel 重新 build 后,下面数值会刷新。
Build
| 字段 | 值 |
|---|---|
| Build Time (UTC) | {buildTime} |
| Commit SHA | {commitSha} |
| Branch | {commitRef} |
| Commit Message | Add Debug group with build-time info + !important on code css fix - /debug/ sidebar group, shows build timestamp + git SHA/ref/msg from VERCEL_GIT_COMMIT_* env vars injected at build - !important on inline code bg override to beat Nextra's own rule - Lets the user verify when their CSS change actually lands |
Inline code rendering test
下面这一行在 iOS Safari / WKWebView light mode 下如果背景是浅灰、字是深色就算修好:
Token bg_deep is #1a1a1a, token bg_base is #2a2a2a, color-mix(in oklab, ...) 的测试。
环境
- Next.js static pre-render (SSG) — 上面数值在构建时写死到 HTML,访问时不变
- 只有触发新部署才会刷新
Last updated on