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

Pretty much everything is exceeding Vercel Edge function Size limits #1277

Closed
Alick1997 opened this issue Jan 15, 2024 · 1 comment
Closed

Comments

@Alick1997
Copy link

Alick1997 commented Jan 15, 2024

Deployed project as directed with vercel and received errors of the form:

Error: The Edge Function "[page].rsc" size is 2.04 MB and your plan size limit is 2 MB. Learn More: https://vercel.link/edge-function-size

These are not isolated to one function as one would expect, initially it was an index function, then it was the opengraph-image function which I fixed by commenting out font importation as follows:

... { width: 1200, height: 630 /* fonts: [ { name: 'Inter', data: await fetch(new URL('../fonts/Inter-Bold.ttf', import.meta.url)).then((res) => res.arrayBuffer() ), style: 'normal', weight: 700 } ]*/ } ); }

I see that similar issues were fixed back in July 2023 among hobby users with a limit of 1MB, yet they seem to persist while I am using a PRO plan with edge function limit of 2MB.

@leerob
Copy link
Member

leerob commented Jan 19, 2024

We'll soon be moving to Partial Prerendering which runs on Node.js #1236

@leerob leerob closed this as completed Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants