fpalla
redirecting from API route
Hey all! I'm trying to redirect to a page (/app) from a API get route after exchanging the token with supabase.
For some reason it works when using locally and it behaves correctly, but it doesn't wotk when deployed (on Vercel).
Am I doing something really wrong / missing something?
I've even tried to manually return a response instead of using the
redirect
but the behaviour is the same.
The whole route code looks like this
Appreciate any pointers/ suggestion!4 replies