Looks like we can no longer use latest prisma in our middleware as it will bump the output above the hobby plan's 1 MB limit.
I unfortunately believe I need to include prisma in my middleware in order to properly handle credential based logins. Otherwise following https://authjs.dev/getting-started/migrating-to-v5#edge-compatibility would probably have worked.
This seems pretty bad, prisma is highly used and not being able to successfully use it within hobby plan will really surprise people (like myself) and prevent people from trying out vercel. Please help!
Related issues:
- https://community.vercel.com/t/the-edge-function-middleware-size-is-1-01-mb-and-your-plan-size-limit-is-1-mb/669
- https://github.com/orgs/vercel/discussions/6990
Error:
Error: The Edge Function "middleware" size is 1.17 MB and your plan size limit is 1 MB. Learn More: https://vercel.link/edge-function-size