pkce flow for passwordless sign in problem with magic link url

Hello, I've set up my passwordless sign in and the code is
emailRedirectTo: `${window.location.origin}/auth/confirm?next=${redirectTo}


In the supabase dashboard my site url is https://mysite.com

As redirect urls i have set up https://localhost:3000 ( yes, it is https, i've set it up)

However when signing up from localhost:3000 and clicking on the magic link it redirects me to mysite.com instead of localhost.

This is the email code:
<p><a href="{{ .SiteURL }}/auth/confirm?token_hash={{ .TokenHash }}&type=email">Log In</a></p>
Was this page helpful?