Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

fix: redirectTo prop on supabase auth component

Ben Fornefeld640d632ddc90
diff --git a/apps/web/src/components/AuthForm.tsx b/apps/web/src/components/AuthForm.tsx
index 0f99f90d0..9a42e508f 100644
--- a/apps/web/src/components/AuthForm.tsx
+++ b/apps/web/src/components/AuthForm.tsx
@@ -72,8 +72,8 @@ function AuthForm({ view }: Props) {
}}
redirectTo={
view === 'forgotten_password'
- ? 'https://e2b.dev/auth/update-password'
- : 'https://e2b.dev/dashboard'
+ ? `${process.env.NEXT_PUBLIC_BASE_URL}/auth/update-password`
+ : `${process.env.NEXT_PUBLIC_BASE_URL}/dashboard`
}
/>
</div>