Next.js view counter with Upstash Redis over HTTP: atomic INCR, Edge Runtime for zero cold starts, React Strict Mode fix, and slug namespace gotchas.
2 articles · 1 review
API Routes are Next.js server-side endpoints defined inside the app directory. They handle HTTP requests, form submissions, and webhooks without spinning up a separate backend service.
Next.js view counter with Upstash Redis over HTTP: atomic INCR, Edge Runtime for zero cold starts, React Strict Mode fix, and slug namespace gotchas.
Next.js dynamic OG images with Satori: why opengraph-image.tsx hangs Turbopack at 400% CPU, how API routes fix it, plus WOFF2 and Twitter card gotchas.
Our dev server was freezing completely on the first visit to any dynamic route – CPU pegged at 300% and the only fix was a restart.
Erik Lindqvist 🇸🇪
Service: technical consultation
AvailableGot a project in mind?
Whether it’s a new product, an integration, or scaling an existing system – let’s talk about how I can help.