how to get router in server function
I need build a typesafe url to be sended by email in a server function
in a component I can use
useRouter().buildLocation({ to: "/auth/sign-up/confirm" }).href;
but how to do that in a server function?
thanks
2 Replies
exotic-emerald•3mo ago
we have not yet exposed such an API
but we will add it
secure-lavenderOP•3mo ago
thanks, I let a work around to solve this