tool · inferred from evidence
middleware.ts
A file in Next.js 15 and earlier used for handling middleware logic, including session refresh.
- 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,