Edge Function size limit exceeded when used with NextAuth and Vercel #1707
taylor-lindores-reeves
started this conversation in
General
Replies: 3 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
@zenorocha wondering if this is a known issue, or a limitation with the combination of using React Email & Vercel infra & Edge Config AuthJS? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is your template using Tailwind? Would be interesting for you to test this out on the latest canaries, since we have just released #1383 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm encountering an issue when using react-email in conjunction with NextAuth on a Vercel deployment. The Edge Function for my authentication route is exceeding Vercel's size limit. Here are the details:
Description:
When deploying my Next.js application to Vercel, the Edge Function for the NextAuth route is exceeding the 2 MB size limit. After investigation, it appears that react-email and its dependencies are contributing significantly to this bundle size.
Error: The Edge Function "api/auth/[...nextauth]" size is 2.17 MB and your plan size limit is 2 MB.
Steps to Reproduce:
Expected Behavior:
The Edge Function should be minimal size within the 2 MB size limit to allow successful deployment on Vercel.
Actual Behavior:
The Edge Function size is 2.17 MB, exceeding the limit and preventing deployment.
Questions:
Any insights or suggestions would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions