Skip to content

Scheduling infrastructure for absolutely everyone.

Transform URLs to array (#9890)

Joe Au-Yeung9ef890330928
diff --git a/packages/app-store/googlecalendar/zod.ts b/packages/app-store/googlecalendar/zod.ts
index ce88e594ff9..8364241af08 100644
--- a/packages/app-store/googlecalendar/zod.ts
+++ b/packages/app-store/googlecalendar/zod.ts
@@ -5,5 +5,11 @@ export const appDataSchema = z.object({});
export const appKeysSchema = z.object({
client_id: z.string().min(1),
client_secret: z.string().min(1),
- redirect_uris: z.string().min(1),
+ redirect_uris: z.union([
+ z.string().url().array(),
+ z
+ .string()
+ .url()
+ .transform((url) => [url]),
+ ]),
});