Closed danielanitsa closed 2 months ago
I have this problem too after upgrading to Next.js 14.2.4
Set this up: https://www.npmjs.com/package/@next/bundle-analyzer
Three browser windows will open up. One of them is the middleware bundle, what do you see there?
As you can see @icyJoseph , this isnt even close to 1MB that vercel says. What should I do?
Ok, time to reach out to the Vercel Support team. They ought to be able to tell you why your Middleware is so large, according to their metric.
Due to inactivity and impossible way to fix this, I am closing this issue. Thanks to everyone in here for contributing
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Link to the code that reproduces this issue
https://github.com/danielanitsa/book-summary-app
To Reproduce
You will see:
You will see this:
Current vs. Expected behavior
The expected behavior was to host the web app without any issues since I followed the docs, however I get this weird and absurd error despite not exceeding any limits that vercel puts
Provide environment information
Which area(s) are affected? (Select all that apply)
Middleware
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
I switched node js versions and re-installed all the packages. I went from using v22.0.3 to v20.14.0 LTS. Also I switched from next js 14.2.2 to next js 14.2.4