Next.js Discord

Discord Forum

NextResponse.redirect not working

West African Crocodile posted this in #help-forum
Open in Discord
Original message was deleted.

3 Replies

West African Crocodile
When logging the response on the client side I get a successful object in return:

Response {type: 'cors', url: '', redirected: true, status: 200, ok: true, …}
Do I need to handle the redirect on the client side in this case or?
West African Crocodile
I need to do the redirect server-side... as I don't have access to the Stripe secret on the client...