diff --git a/src/components/auth/register-form.tsx b/src/components/auth/register-form.tsx index 6ca0018..5eab48c 100644 --- a/src/components/auth/register-form.tsx +++ b/src/components/auth/register-form.tsx @@ -50,11 +50,14 @@ export function RegisterForm() { return } + // Use configured APP_URL to include basePath in redirect + const appUrl = process.env.NEXT_PUBLIC_APP_URL || window.location.origin + const { error: signUpError } = await supabase.auth.signUp({ email, password, options: { - emailRedirectTo: `${window.location.origin}/auth/callback`, + emailRedirectTo: `${appUrl}/auth/callback/`, } })