Payload to large trpc
Where do I adjust the max payload size for trpc?
4 Replies
If you use pages router you are able to change body limit in next.config https://nextjs.org/docs/pages/building-your-application/routing/api-routes
Routing: API Routes | Next.js
Next.js supports API Routes, which allow you to build your API without leaving your Next.js app. Learn how it works here.
I use app router. Have tried that but doesn't seem to register.
What do you send throught trpc that is so big?
OCR My trpc is maxing out at 1 mb
Have tried all the tricks to fix this listed on google etc. Not sure why I cannot adjust the size.