You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As such - there is no documentation or examples (anywhere, as far as I can tell) for how to manage cacheing of tRPC endpoints running in a NextJS App Router environment.
Area of Improvement
Currently documented tRPC cacheing methods (https://trpc.io/docs/server/caching) won't work with Next.JS' app router as they rely on setting headers which Next.js now overrides (https://nextjs.org/docs/app/api-reference/next-config-js/headers#cache-control).
As such - there is no documentation or examples (anywhere, as far as I can tell) for how to manage cacheing of tRPC endpoints running in a NextJS App Router environment.
Link to related docs
https://trpc.io/docs/server/caching
Funding
The text was updated successfully, but these errors were encountered: