Platform
Next.js fixes
Next.js errors that survive the deploy: hydration, env vars, and server routes.
Start with these three:
41 fixes: 6 in full, then 35 more by title.
Top Next.js fixes
- 500: INTERNAL_SERVER_ERROR / FUNCTION_INVOCATION_FAILED on Vercel
Investigate a Vercel function failure using runtime logs, environment checks, Node compatibility, database connections and local reproduction.
- Clerk sign-in keeps redirecting in a loop
The app bounces between the page and Clerk sign-in forever? The redirect target is protected too, or the force-redirect URL points back at the gate.
- Hydration failed because the server rendered HTML didn't match the client
Next.js "Hydration failed" error? The server and browser drew different HTML. Fix nesting, window/localStorage use and dates.
More Next.js fixes
Older or narrower fixes for Next.js. Titles only.
- Next.js DynamicServerError during the Vercel build
- Next.js Prerender Error during next build
- Next.js: NextRouter was not mounted
- Next.js: the middleware file convention is deprecated, use proxy
- Next.js: Missing Root Layout tags (html and body)
- Next.js: Using Node.js modules in Edge Runtime (Proxy or Middleware)
- Next.js: a client hook was used in a Server Component
- Next.js: useSearchParams() is missing a Suspense boundary
- Next.js: params, searchParams, or cookies() must be awaited
- Next.js Security Update for Upstream Vulnerabilities
- Next.js: a Client Component cannot be async
- Stripe webhook failing: 404, 307/308 redirect, timeout or 500
- Clerk: auth() was called but clerkMiddleware() was not detected
- Clerk production deploy is still using pk_test_ keys
- Clerk: Missing or invalid Publishable Key
- MIDDLEWARE_INVOCATION_FAILED
- Vercel INFINITE_LOOP_DETECTED
- Vercel MIDDLEWARE_INVOCATION_TIMEOUT
- too many connections / remaining connection slots are reserved (Supabase + serverless)
- Prisma on Vercel: query engine not found
- next/image Un-configured Host
- Invalid "use server" Value
- Failed to find Server Action
- ReferenceError: window is not defined
- Supabase refresh_token_already_used: Refresh token has been revoked and falls outside the refresh token reuse interval
- Supabase Auth over_request_rate_limit (429 Too Many Requests)
- Supabase Auth flow_state_not_found or flow_state_expired
- 502 Bad Gateway / NO_RESPONSE_FROM_FUNCTION on Vercel
- Event handlers cannot be passed to Client Component props
- Serverless Function has exceeded the unzipped maximum size of 250 MB
- Changed an environment variable on Vercel but the live site still uses the old value
- Supabase error: JWT expired
- Supabase data loads only after a refresh
- Vercel 413 FUNCTION_PAYLOAD_TOO_LARGE
- Module not found: Can't resolve (build works locally, fails on Vercel)
Keep going on your own.
The guides stay free. A deep leak report is $15. Fix packs are $24, or $49 for all three. There is no done-for-you repair.