Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Add sign in redirect to dashboard

Jakub Novak62bf1a0212bd
diff --git a/apps/web/src/components/AuthForm.tsx b/apps/web/src/components/AuthForm.tsx
index 0bcd359d7..a540a84ef 100644
--- a/apps/web/src/components/AuthForm.tsx
+++ b/apps/web/src/components/AuthForm.tsx
@@ -17,7 +17,8 @@ export interface Props {
function AuthForm({ view }: Props) {
const searchParams = useSearchParams()
- const redirectTo = searchParams?.get('redirect_to') || undefined
+ const redirectTo =
+ searchParams?.get('redirect_to') || 'https://e2b.dev/dashboard'
const router = useRouter()
const user = useUser()