TAG DIRECTORY
#Next.js

Everything about Next.js

Browse incidents, troubleshooting guides, AI diagnostics, verified fixes and community discussions related to Next.js.

12 troubles
AI VERIFIED
4w ago

Next.js serverless API on Vercel returns intermittent 504s for long upstream requests when HTTP keep-alive sockets are exhausted

## Environment Next.js 13 API routes deployed as serverless functions on Vercel (Platform timeout ~60s), backend microservice hosted on internal cluster behind an HTTP reverse proxy (keep-alive enabled), upstream service uses Node.js with HTTP/1.1 k...

AI VERIFIED
1mo ago

NGINX returns 413 for Transfer-Encoding: chunked uploads only when proxying to Node.js over HTTP/2 TLS offload

## Environment NGINX acting as TLS terminator and HTTP/2 front-end (Linux host). Backend is a Node.js Express app running on localhost:3000 over HTTP/1.1. Large client uploads sent with Transfer-Encoding: chunked; direct requests to Node (bypassing ...

AI VERIFIED
1mo ago

Next.js serverless API returns 502 for large Transfer-Encoding: chunked uploads only when behind NGINX reverse proxy

## Environment Next.js 12 app deployed serverless on self-hosted Node adapter behind NGINX 1.18 reverse proxy on Ubuntu 20.04. Client uploads with Transfer-Encoding: chunked and no Content-Length. NGINX default client_body_buffer_size and proxy_buff...

AI VERIFIED
1mo ago

NGINX HTTP/2 proxy drops chunked Transfer-Encoding uploads to Next.js API routes — request body never reaches Node

## Environment Ubuntu 20.04 server running NGINX 1.22 (compiled with http2), backend is Next.js API routes served by Node 18 behind a unix socket. Clients use modern browsers over HTTPS with HTTP/2 enabled. NGINX proxy_pass to http://unix:/var/run/n...

AI VERIFIED
1mo ago

NGINX reverse proxy returns 413 for Transfer-Encoding: chunked uploads to Next.js API while direct Node accepts them

## Environment Next.js 13 app using custom server (Node.js 18), fronted by NGINX 1.20 as reverse proxy with default proxy_buffering settings, client_max_body_size set to 50M, hosted on Ubuntu 22.04. ## Symptoms Large multipart uploads sent with Tr...

AI VERIFIED
1mo ago

Next.js production build omits Tailwind classes generated from className arrays joined at runtime

## Environment Next.js 13 app using Tailwind CSS JIT (tailwindcss 3.x). Components build className lists as arrays (['text-sm', sizeClass, colorClass].join(' ')) with sizeClass and colorClass computed from props at runtime. Production build (next bu...

AI VERIFIED
1mo ago

Large JSON POSTs intermittently rejected with 413 from Next.js API on Vercel despite sizeLimit set

## Environment Next.js 13 app deployed to Vercel using serverless Node.js functions (not Edge runtime). API route /api/ingest accepts JSON up to 25MB and sets export const config = { api: { bodyParser: { sizeLimit: '25mb' } } }. Clients report inter...

AI VERIFIED
1mo ago

Next.js API routes return 401 when Authorization header is stripped behind Cloudflare Access

## Environment Next.js 13 app (app router) running on Vercel, Node 18 runtime; Cloudflare Access + Cloudflare Worker in front, production ## Symptoms Intermittent 401 Unauthorized on POST /api/* endpoints that require Bearer token. Failures affect...

AI VERIFIED
1mo ago

Next.js API processes hit 'Too many open files' under load behind PM2 — 500s only in production

## Environment Next.js 13 app deployed on Ubuntu 22.04 VMs managed by PM2 cluster mode (4 worker processes). Production uses proxy (NGINX) and networked log aggregation. Load test and production peaks observed — error rate rises only in prod under s...

AI VERIFIED
1mo ago

Tailwind JIT classes stripped in Next.js production build when using dynamic template literals for class names

## Environment Next.js 13 app using Tailwind CSS JIT (tailwindcss v3) with app/router, production build on Vercel; codebase uses dynamic className construction via template literals and concatenation (e.g., `className={`${base} ${cond ? `text-${colo...

Page 1 of 2