The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update app.ts
Steven Tey1bf7a1e55243
diff --git a/apps/web/lib/middleware/app.ts b/apps/web/lib/middleware/app.tsindex 1e46ecaf6d..9203b7943b 100644--- a/apps/web/lib/middleware/app.ts+++ b/apps/web/lib/middleware/app.ts@@ -33,7 +33,8 @@ export default async function AppMiddleware(req: NextRequest) {if (session?.user?.createdAt &&new Date(session?.user?.createdAt).getTime() > Date.now() - 10000 &&- path === "/"+ // here we include the root page + /new (since they're going through welcome flow already)+ (path === "/" || path === "/new")) {return NextResponse.redirect(new URL("/welcome", req.url));