Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Current cacheing docs are invalid for NextJS App Router #5625

Open
jeffrey-computers opened this issue Apr 12, 2024 · 0 comments
Open
Labels
📚 documentation / examples Improvements or additions to documentation

Comments

@jeffrey-computers
Copy link

jeffrey-computers commented Apr 12, 2024

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

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We receive the pledge once the issue is completed & verified
Fund with Polar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 documentation / examples Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant