Skip to content

Commit

Permalink
Add sign in redirect to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Oct 16, 2024
1 parent e7d7ca7 commit 62bf1a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/src/components/AuthForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 62bf1a0

Please sign in to comment.