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.

remove '/' restrictions

Steven Teyf0c10d8149ff
diff --git a/apps/web/lib/api/links.ts b/apps/web/lib/api/links.ts
index 965d91133c..85167cb528 100644
--- a/apps/web/lib/api/links.ts
+++ b/apps/web/lib/api/links.ts
@@ -307,15 +307,6 @@ export async function processLink({
status: 403,
};
}
- // can't use `/` in key on free plan
- if (key?.includes("/") || payload["prefix"]) {
- return {
- link: payload,
- error:
- "Key cannot contain '/'. You can only use key prefixes on a Pro plan and above. Upgrade to Pro to use this feature.",
- status: 422,
- };
- }
}
// if domain is not defined, set it to the project's primary domain