Payload to large trpc

Where do I adjust the max payload size for trpc?
4 Replies
DomsoN
DomsoN4w ago
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.
gnarley_farley.
gnarley_farley.OP4w ago
I use app router. Have tried that but doesn't seem to register.
DomsoN
DomsoN4w ago
What do you send throught trpc that is so big?
gnarley_farley.
gnarley_farley.OP4w ago
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.

Did you find this page helpful?