Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The Edge Function "middleware" size is 1.02 MB and your plan size limit is 1 MB. #74916

Open
Olgoetz opened this issue Jan 15, 2025 · 0 comments
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.

Comments

@Olgoetz
Copy link

Olgoetz commented Jan 15, 2025

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)

Image

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

@Olgoetz Olgoetz added the bug Issue was opened via the bug report template. label Jan 15, 2025
@github-actions github-actions bot added Developer Experience Issues related to Next.js logs, Error overlay, etc. Middleware Related to Next.js Middleware. labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant