Blog
Notes
Every pitfall gets written down, so I only have to hit it once. These are the posts available in English.
- 2026-11-29Upgrading to TypeScript 7 while typescript-eslint still needs TypeScript 6TypeScript 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.
- 2026-11-28Minutes after enforcing CSP, it caught a script Cloudflare injects only for real browsers43 pages tested clean, then enforcing CSP on the live site blocked a script Cloudflare injects at the edge, only for real browsers.
- 2026-11-27A scroll-driven navbar background and back-to-top button in pure CSSReplace a scroll listener with CSS animation-timeline: scroll() for a fading navbar and back-to-top button, with a JS fallback.
- 2026-11-25Three silent traps after enabling Next.js 16 Cache ComponentsEnabling 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.
- 2026-11-25Tailwind v4: bg-[--accent] made my button invisibleAfter upgrading to Tailwind v4, a button vanished in light mode: bg-[--accent] now compiles to invalid CSS. Use bg-(--accent) instead.
- 2026-11-09My site was down for 4 days while every health check said it was fineAfter a reboot, cloudflared showed Running and localhost was fine, yet the site was unreachable for 4 days. The timeline and the fix.
- 2026-11-05My site died every 72 hours: Windows Task Scheduler's default time limitMy self-hosted site died every three days. The cause: Task Scheduler's default 'stop the task if it runs longer than 3 days' setting.
- 2026-07-17Next.js params is now a Promise: a 404 trap that tsc and the build both missType 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.
The full blog has 64 posts, written in Traditional Chinese: all posts.