Next.js Discord

Discord Forum

Nextjs standalone behind Nginx

Unanswered
Chinese Alligator posted this in #help-forum
Open in Discord
Chinese AlligatorOP
Hi! I'm running Next.js 14.2.4 in standalone mode behind Nginx.
I'm using Auth.js in JWT mode, and middleware to check the session cookie and refresh it when necessary.

After upgrading to Next.js 14.2.26, I'm getting “headers too long” errors in Nginx.
I checked the PRs from 14.2.5 to 14.2.26 but didn’t see anything that might affect.
Do I need to configure something in Nginx to fix this?

0 Replies