Is there a way to indicate a route is deprecated for the purpose of type safety? #5375
PatrickJoannisse
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Minimal example here. I have a site with a page located at
/pageand I want to move it to/blogs/page. However, I want to preserve backward compatibility and redirect people from/pageto/blog/page.The way I understand how to do this right now is to do preserve the
page.tsxfile but do something like this:But technically, if could use
/pageas a value for a<Link to="/page">and it would be valid. No error or warning is shown.I guess I have two questions:
/blog/page.tsx?Beta Was this translation helpful? Give feedback.
All reactions