Next.js Cache Not Revalidating After Server Action: The Real Fix
Why your Next.js server action runs cleanly but the page still shows stale data, and the exact tag, path, and RSC boundary fixes I use on Next.js 16 in production today.
Tomasz is a senior frontend engineer with eleven years of experience, currently a tech lead at a Berlin-based fintech where he migrated 180 routes from CRA to Next.js 14 App Router over nine months without a single user-facing outage. Before that, four years at Klarna building the merchant dashboard in Next.js, and two years at a small agency in Krakow shipping marketing sites for European retailers. He maintains two small open-source libraries in the React ecosystem, one for typed environment variables and one for a Suspense-friendly data fetching wrapper that predates the React 19 use() hook. He prefers Drizzle over Prisma, NextAuth over Clerk for self-hosted setups, and has strong feelings about putting business logic in Server Components. He writes the kind of tutorials that show the broken intermediate state, not just the working final code.
Why your Next.js server action runs cleanly but the page still shows stale data, and the exact tag, path, and RSC boundary fixes I use on Next.js 16 in production today.
Build type-safe forms in Next.js with React Hook Form, Zod, and Server Actions. Includes useActionState, file uploads, error handling, and progressive enhancement patterns for Next.js 15 and 16.
Learn how to self-host Next.js with Docker using standalone output and multi-stage builds. Covers health checks, ISR caching with Redis, Nginx reverse proxy, CI/CD with GitHub Actions, and environment variable management.
Learn how to implement file uploads in Next.js App Router using Server Actions, Route Handlers, and S3 presigned URLs. Covers drag-and-drop, progress tracking, Zod validation, and security best practices.
Build production-ready APIs with Next.js Route Handlers in the App Router. Covers CRUD operations, CORS, caching, streaming AI responses, file uploads, webhook verification, authentication, and rate limiting with working TypeScript code examples.
Learn how to build URL-driven modals, multi-panel dashboards, and Instagram-style photo galleries using Next.js parallel routes and intercepting routes with production-ready code examples.
A hands-on guide to building a production-ready database layer with Drizzle ORM and Next.js App Router — covering schema design, relational queries, Server Actions, serverless connection management, and Vercel deployment.
A practical guide to building production-ready authentication in Next.js using Auth.js v5. Covers OAuth and credentials providers, session strategies, protecting routes in server components, role-based access control, and security best practices for the App Router.
A complete guide to Next.js middleware and the proxy.ts migration. Covers authentication gates, i18n routing, rate limiting, A/B testing, CORS, geolocation routing, CVE-2025-29927 security lessons, and performance best practices.