Skip to content

armgit / E2B

Public Imported from GitHub
0

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

improve: replace environment variable with document location origin

Ben Fornefeld145a5646693f
diff --git a/apps/web/src/components/AuthForm.tsx b/apps/web/src/components/AuthForm.tsx
index 9a42e508f..09ecb1dfd 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'
- ? `${process.env.NEXT_PUBLIC_BASE_URL}/auth/update-password`
- : `${process.env.NEXT_PUBLIC_BASE_URL}/dashboard`
+ ? `${document.location.origin}/auth/update-password`
+ : `${document.location.origin}/dashboard`
}
/>
</div>