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.

fix tests

Steven Teyf00262dd6f5e
diff --git a/apps/web/lib/auth/workspace.ts b/apps/web/lib/auth/workspace.ts
index 8dbff7f797..3998f201bc 100644
--- a/apps/web/lib/auth/workspace.ts
+++ b/apps/web/lib/auth/workspace.ts
@@ -103,7 +103,7 @@ export const withWorkspace = (
// special case for anonymous link creation
if (
req.headers.has("dub-anonymous-link-creation") &&
- req.nextUrl.pathname === "/links"
+ ["/links", "/api/links"].includes(req.nextUrl.pathname)
) {
// @ts-expect-error
return await handler({