Nextjs 14 App Router How to make 301 Redirect
I have slugs of products in my project. And the slugs are dynamic and can be updated. When it is updated, I want to redirect it to the new one with 301, but I could only redirect it with 308. The code is basicly like this: