Replies: 1 comment
-
looks like it's available in app router https://nextjs.org/docs/app/api-reference/config/next-config-js/reactMaxHeadersLength mark as solution if this fixes the problem for you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
After migrating to Next.js 13 from 12, batched tRPC requests with a very long URL fails with 431 error (The URL length is a total of 7995)
It used to work in Next.js 12 but no longer works in Next.js 13.4.19.
The workaround is here, and setting
maxURLLength
to 6000 worked.https://trpc.io/docs/client/links/httpBatchLink#setting-a-maximum-url-length
So, it seems like the maximum request header size is changed in Next.js 13.
I would like to know if there's any option to increase it so it works like in Next.js 12.
Thanks.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions