Home > Back-end >  How to redirect a user in Server component in Nextjs 13?
How to redirect a user in Server component in Nextjs 13?

Time:11-20

I'm new to next js, and want to redirect a user server component without using "use client"

CodePudding user response:

I'm not sure if I get the question the question right, but a good way to redirect with next.js is setting up a middleware.

It's explained quite well in the next.js docs.

If that's not what you're looking for, please specify your question a bit more

  • Related