MENU
Redirects
You can redirect a request with:
- redirect() or permanentRedirect() in Server Components, Server Actions, or Route Handlers.
- useRouter() in Client Components.
- next.config.js file.
- NextResponse.redirect() in the Middleware.
You can redirect a request with: