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 workspaces.ts

Steven Tey0f01624ce3f8
diff --git a/apps/web/lib/zod/schemas/workspaces.ts b/apps/web/lib/zod/schemas/workspaces.ts
index 22f128cf71..2c31dd2abe 100644
--- a/apps/web/lib/zod/schemas/workspaces.ts
+++ b/apps/web/lib/zod/schemas/workspaces.ts
@@ -145,21 +145,6 @@ export const createWorkspaceSchema = z.object({
conversionEnabled: z.boolean().optional(),
});
-export const updateWorkspaceSchema = createWorkspaceSchema.partial().extend({
- allowedHostnames: z.array(z.string()).optional(),
- publishableKey: z
- .union([
- z
- .string()
- .regex(
- /^dub_pk_[A-Za-z0-9_-]{16,64}$/,
- "Invalid publishable key format",
- ),
- z.null(),
- ])
- .optional(),
-});
-
export const notificationTypes = z.enum([
"linkUsageSummary",
"domainConfigurationUpdates",