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.

Update app.ts

Steven Tey34ac751e428d
diff --git a/apps/web/lib/middleware/app.ts b/apps/web/lib/middleware/app.ts
index 1a7260f96f..fc599200d7 100644
--- a/apps/web/lib/middleware/app.ts
+++ b/apps/web/lib/middleware/app.ts
@@ -36,7 +36,7 @@ export default async function AppMiddleware(req: NextRequest) {
new Date(user.createdAt).getTime() > Date.now() - 10000 &&
// here we include the root page + /new (since they're going through welcome flow already)
path !== "/welcome" &&
- // if the user was invited to a workspace, don't show the welcome page
+ // if the user was invited to a workspace, don't show the welcome page – redirect straight to the workspace
!isWorkspaceInvite
) {
return NextResponse.redirect(new URL("/welcome", req.url));