sanity auto redirect function #10774
Unanswered
surajroboto
asked this question in
Sanity Studio Support
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.
-
Sanity function to create a new redirect if the slug changes. However, there's an issue with that when it comes to Next.js. I know they are fetched in the next.config.ts, however, that means the redirects are only created at build time. This would become an issue for example, you publish an article with a new/updated slug after the application is deployed. The new redirect would not be picked up and folks going to the outdated URL would not get the redirect.
Beta Was this translation helpful? Give feedback.
All reactions