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 createId prefixes

Steven Tey1fcdbf15bbbd
diff --git a/apps/web/lib/api/create-id.ts b/apps/web/lib/api/create-id.ts
index 5c84182fe8..1e694e7971 100644
--- a/apps/web/lib/api/create-id.ts
+++ b/apps/web/lib/api/create-id.ts
@@ -5,6 +5,7 @@ const prefixes = [
"user_",
"link_",
"tag_",
+ "fold_",
"dom_",
"po_",
"dash_",
@@ -13,15 +14,16 @@ const prefixes = [
"cus_",
"utm_",
"wh_",
- "pgi_",
- "pge_",
"pn_",
- "cm_",
+ "prog_",
"pga_",
- "dub_embed_",
+ "pgi_",
+ "pge_",
"inv_",
+ "cm_",
"rw_",
- "fold_",
+ "disc_",
+ "dub_embed_",
] as const;
// ULID uses base32 encoding