Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

allow account redirect

Steven Tey6507f4a8b26c
diff --git a/apps/web/lib/middleware/app.ts b/apps/web/lib/middleware/app.ts
index 93a4e73260..a0be0a8878 100644
--- a/apps/web/lib/middleware/app.ts
+++ b/apps/web/lib/middleware/app.ts
@@ -53,7 +53,7 @@ export default async function AppMiddleware(req: NextRequest) {
} else if (
new Date(user.createdAt).getTime() > Date.now() - 60 * 60 * 24 * 1000 &&
!isWorkspaceInvite &&
- !path.startsWith("/onboarding") &&
+ !["/onboarding", "/account"].some((p) => path.startsWith(p)) &&
!(await getDefaultWorkspace(user)) &&
(await getOnboardingStep(user)) !== "completed"
) {