T
TanStack11mo ago
extended-salmon

Redirect to external URL from server function

Hey, how do I redirect to external URL from server function? I want to invoke supabase oauth login
5 Replies
equal-jade
equal-jade11mo ago
working on that
extended-salmon
extended-salmonOP11mo ago
Do you mean it's not supported yet?
deep-jade
deep-jade11mo ago
As of right now you could wire it up manually by setting the Location: yourURL header In the response. But we’re working on supporting external redirects through the official TanStack redirect utility
extended-salmon
extended-salmonOP11mo ago
Okay, thanks guys for working on this. So far this framework looks crazy good, I wish you all the best 😉
equal-jade
equal-jade9mo ago
Server Functions | TanStack Router React Docs
What are Server Functions? Server functions allow you to specify logic that can be invoked anywhere (even the client), but run only on the server. In fact, they are not so different from an API route,...

Did you find this page helpful?