platform
Next.js
19 verified traps, most recently checked first. Also as a list with each fix: Next.js breaking changes.
- fg-0565Next.jsVerified Oct 2026A Server Action without its own auth check can be called by anyone, even from a page that redirects strangers
An admin page redirects signed-out visitors, but its form action still runs when posted to directly
verified 2026-10-27 · 0 confirmations
- fg-0564Next.jsVerified Oct 2026A secret in a NEXT_PUBLIC_ environment variable is copied into the JavaScript every visitor downloads
A secret API key, such as an OpenAI, Stripe secret or Supabase secret key, is named NEXT_PUBLIC_ something
verified 2026-10-27 · 0 confirmations
- fg-0566Next.jsVerified Oct 2026An admin Route Handler with no auth check inside it is open to anyone who finds the URL
A request to an /api/admin route with no cookie returns data or makes a change
verified 2026-10-27 · 0 confirmations
- fg-0563Next.jsVerified Oct 2026A Next.js route that calls OpenAI or Anthropic with no auth or rate limit lets anyone spend your API credits
The AI route answers requests that carry no session cookie
verified 2026-10-27 · 0 confirmations
- fg-0304Next.jsVerified Oct 2026next/image quality prop is ignored on Next.js 16 and direct /_next/image?q=90 requests return 400
An Image with quality={90} is served at q=75
verified 2026-10-15 · 0 confirmations
- fg-0305Next.jsVerified Oct 2026next/image returns 400 '"url" parameter is not allowed' for a localhost or private-network image source
"url" parameter is not allowed
verified 2026-10-15 · 0 confirmations
- fg-0307Next.jsVerified Oct 2026NEXT_PUBLIC_ variable set at container runtime is ignored and the browser still sees the build-time value
process.env.NEXT_PUBLIC_API_URL is undefined in the browser even though the container has it set
verified 2026-10-15 · 0 confirmations
- fg-0309Next.jsVerified Oct 2026params.id is undefined after upgrading to Next.js 16 because params and searchParams are Promises
params.slug is undefined in a page that worked on Next.js 14
verified 2026-10-15 · 0 confirmations
- fg-0310Next.jsVerified Oct 2026redirect() in a Server Action does nothing, or logs NEXT_REDIRECT, when it sits inside try/catch
Error: NEXT_REDIRECT
verified 2026-10-15 · 0 confirmations
- fg-0306Next.jsVerified Oct 2026Next.js 16 warns middleware is deprecated, and proxy.ts throws if you set runtime = 'edge'
The "middleware" file convention is deprecated. Please use "proxy" instead.
verified 2026-10-15 · 0 confirmations
- fg-0308Next.jsVerified Oct 2026notFound() returns HTTP 200 instead of 404 when called inside a Suspense boundary or under loading.tsx
curl -I on a missing record returns 200 OK while the page shows the not-found UI
verified 2026-10-15 · 0 confirmations
- fg-0311Next.jsVerified Oct 2026With cacheComponents, dropdowns stay open and forms keep old values after navigating away and back
A popover opened before navigation is still open on return
verified 2026-10-15 · 0 confirmations
- fg-0299Next.jsVerified Oct 2026Enabling cacheComponents breaks the build on export const dynamic, revalidate, fetchCache or dynamicParams
Route segment config "dynamicParams" is not compatible with `nextConfig.cacheComponents`.
verified 2026-10-15 · 0 confirmations
- fg-0300Next.jsVerified Oct 2026'Failed to find Server Action' errors when Next.js runs on more than one container or after a deploy
Error: Failed to find Server Action "7f3a...". This request might be from an older or newer deployment.
verified 2026-10-15 · 0 confirmations
- fg-0297Next.jsVerified Oct 2026Build fails on Next.js 16 because a parallel route slot has no default.js
Missing required default.js file for parallel route at app/@modal
verified 2026-10-15 · 0 confirmations
- fg-0303Next.jsVerified Oct 2026next build fails on Next.js 16 with 'This build is using Turbopack, with a webpack config and no turbopack config'
This build is using Turbopack, with a `webpack` config and no `turbopack` config.
verified 2026-10-15 · 0 confirmations
- fg-0298Next.jsVerified Oct 2026Build fails with 'encountered the unstable value crypto.randomUUID()' after enabling cacheComponents
Route "/account": Next.js encountered the unstable value `crypto.randomUUID()` while prerendering.
verified 2026-10-15 · 0 confirmations
- fg-0301Next.jsVerified Oct 2026File upload through a Server Action fails with 'Body exceeded 1 MB limit'
Error: Body exceeded 1 MB limit.
verified 2026-10-15 · 0 confirmations
- fg-0302Next.jsVerified Oct 2026generateStaticParams returning an empty array fails the build once cacheComponents is on
Build error linking to /docs/messages/empty-generate-static-params
verified 2026-10-15 · 0 confirmations
Give your coding agent these traps before it hits them