The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
return allowed hostnames
Kiran K3ba1388fcabd
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/route.tsindex 257a17af1a..0ff2522b95 100644--- a/apps/web/app/api/workspaces/[idOrSlug]/route.ts+++ b/apps/web/app/api/workspaces/[idOrSlug]/route.ts@@ -44,6 +44,7 @@ export const GET = withWorkspace(flags: await getFeatureFlags({workspaceId: workspace.id,}),+ allowedHostnames: workspace.allowedHostnames?.split(" "),}),yearInReview: yearInReviews.length > 0 ? yearInReviews[0] : null,},diff --git a/apps/web/lib/zod/schemas/workspaces.ts b/apps/web/lib/zod/schemas/workspaces.tsindex b5a0772804..4f863f2421 100644--- a/apps/web/lib/zod/schemas/workspaces.ts+++ b/apps/web/lib/zod/schemas/workspaces.ts@@ -105,6 +105,11 @@ export const WorkspaceSchema = z.record(z.any()).nullable().describe("The miscellaneous key-value store of the workspace."),+ allowedHostnames: z+ .array(z.string())+ .default([])+ .describe("Specifies hostnames permitted for client-side click tracking.")+ .openapi({ example: ["dub.sh"] }),}).openapi({title: "Workspace",