Next.js Discord

Discord Forum

Middleware Issues in Vercel Deployment: Multiple Requests for All Pages

Unanswered
Andalusian Hound posted this in #help-forum
Open in Discord
Avatar
Andalusian HoundOP
In the project I deployed on Vercel, my Next.js version is 14^. When I build and test it locally, the middleware works correctly. However, when I check the Vercel runtime logs, I see that when a user is redirected to a page, requests are made for all pages. What could be causing this, and how can I resolve it? Thank you in advance.

1 Reply

Avatar
Andalusian HoundOP
Image