framework · inferred from evidence
Next.js
A React framework for building web applications.
- WebPack error: Critical dependency: the request of a dependency is an expression
Shows how to fix webPack error: Critical dependency: the request of a dependency is an expression. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
- Next.js SSR: intermittent JWT token expired errors
Shows how to fix next.js SSR: intermittent JWT token expired errors. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
- Upstash Redis on Vercel Edge and Next.js: REST only, no TCP connections to manage
Shows how to fix upstash Redis on Vercel Edge and Next.js: REST only, no TCP connections to manage. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
- The Edge Function exceeds the maximum size limit of 1 MB
Your Vercel deploy fails because an Edge Function (usually middleware.ts) is bigger than the edge size cap: 1 MB on Hobby, 2 MB on Pro, 4 MB on Enterprise, measured after gzip. This shows how to slim it down: audit what middleware imports,
- A Serverless Function has exceeded the unzipped maximum size of 250 MB
Your Vercel deploy fails with "A Serverless Function has exceeded the unzipped maximum size of 250 MB". This shows how to find what is bloating the bundle (huge deps like ace-builds or elizaos packages, stray data dirs pulled in by file tra
- SendGrid in a Next.js API route: server-only key, @sendgrid/mail
Send mail from a Next.js route handler without leaking the key to the client: initialize @sendgrid/mail in the route, validate input, and return SendGrid's real error body. Not for different error messages.
- Failed to execute 'subscribe' on 'PushManager': Subscription failed - no active Service Worker
Fixes 'Failed to execute subscribe on PushManager: Subscription failed - no active Service Worker' from Firebase messaging getToken by upgrading the Firebase JS SDK to 11.1.0 or later. Use when getToken intermittently throws this in Next.js