Error: The Edge Function "middleware" size is 1.02 MB and your plan size limit is 1 MB. #74916
Labels
bug
Issue was opened via the bug report template.
Developer Experience
Issues related to Next.js logs, Error overlay, etc.
Middleware
Related to Next.js Middleware.
Link to the code that reproduces this issue
https://github.com/Olgoetz/CraftTech
To Reproduce
Deploy the project on Vercel.
Current vs. Expected behavior
Building this project on Vercel results in
Error: The Edge Function "middleware" size is 1.02 MB and your plan size limit is 1 MB. Learn More: https://vercel.link/edge-function-size
altough this function is far below 1 MB according to the build logs (see screenshot)
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:16:46 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8112 Available memory (MB): 8192 Available CPU cores: 8 Binaries: Node: 20.18.1 npm: 10.8.2 Yarn: 1.22.22 pnpm: N/A Relevant Packages: next: 15.1.4 // Latest available version is detected (15.1.4). eslint-config-next: 15.1.4 react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Developer Experience, Middleware
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
No response
The text was updated successfully, but these errors were encountered: