# Notes

Posts available in English (a selection translated from the Chinese blog). The full list, in Traditional Chinese, is at https://kbs0830.com/blog.md.

- [Upgrading to TypeScript 7 while typescript-eslint still needs TypeScript 6](https://kbs0830.com/en/blog/typescript-7-alongside-typescript-eslint.md) (2026-11-29): TypeScript 7 has no JS API yet and typescript-eslint needs TS 6, so I installed both under npm aliases. Type check: 8.3 s to 1.5 s.
- [Minutes after enforcing CSP, it caught a script Cloudflare injects only for real browsers](https://kbs0830.com/en/blog/csp-cloudflare-injected.md) (2026-11-28): 43 pages tested clean, then enforcing CSP on the live site blocked a script Cloudflare injects at the edge, only for real browsers.
- [A scroll-driven navbar background and back-to-top button in pure CSS](https://kbs0830.com/en/blog/css-scroll-driven-navbar-back-to-top.md) (2026-11-27): Replace a scroll listener with CSS animation-timeline: scroll() for a fading navbar and back-to-top button, with a JS fallback.
- [Three silent traps after enabling Next.js 16 Cache Components](https://kbs0830.com/en/blog/nextjs-cache-components-traps.md) (2026-11-25): Enabling Next.js 16 Cache Components froze an API at build time, turned 404s into 200s and cached a failure. None of it raised an error.
- [Tailwind v4: bg-[--accent] made my button invisible](https://kbs0830.com/en/blog/tailwind-v4-bracket-var.md) (2026-11-25): After upgrading to Tailwind v4, a button vanished in light mode: bg-[--accent] now compiles to invalid CSS. Use bg-(--accent) instead.
- [My site was down for 4 days while every health check said it was fine](https://kbs0830.com/en/blog/tunnel-down-four-days.md) (2026-11-09): After a reboot, cloudflared showed Running and localhost was fine, yet the site was unreachable for 4 days. The timeline and the fix.
- [My site died every 72 hours: Windows Task Scheduler's default time limit](https://kbs0830.com/en/blog/task-scheduler-72-hours.md) (2026-11-05): My self-hosted site died every three days. The cause: Task Scheduler's default 'stop the task if it runs longer than 3 days' setting.
- [Next.js params is now a Promise: a 404 trap that tsc and the build both miss](https://kbs0830.com/en/blog/nextjs-params-promise-trap.md) (2026-07-17): Type checking passed and the build generated every page, yet each one was a 404: in Next.js 16, params is a Promise you must await.

---

Author: PINGWEI LI (李秉威, Li Ping-Wei)
Original page: https://kbs0830.com/en/blog
