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.

add `ws_` prefix to the id returned by create workspace api

Kiran K0965517bd4bd
diff --git a/apps/web/app/api/workspaces/route.ts b/apps/web/app/api/workspaces/route.ts
index a5d5760948..2cdbcc58dd 100644
--- a/apps/web/app/api/workspaces/route.ts
+++ b/apps/web/app/api/workspaces/route.ts
@@ -157,6 +157,7 @@ export const POST = withSession(async ({ req, session }) => {
const response = {
...projectResponse,
+ id: `ws_${projectResponse.id}`,
domains: projectResponse.domains.map(({ slug, primary }) => ({
slug,
primary,