#How does URL rewrite work in Tanstack query?
1 messages · Page 1 of 1 (latest)
what's your definition of "rewrite" ?
I'm trying to proxy a request to a page to another page.
Here's an example of how it's done in next.js
https://nextjs.org/docs/app/api-reference/config/next-config-js/rewrites
we don't support rewriting routes yet in that way
in your config, tanstack router is not aware that this rewrite is happening and thus cannot take it into account
we will add some API to do this in router in the future
Ok, noted. Will keep an eye out for the update