From f00568e7987e6dbf257d6cf1c3ea30a140d618d6 Mon Sep 17 00:00:00 2001 From: Lachlan Harris <121010139+lachlanharrisdev@users.noreply.github.com> Date: Thu, 22 Jan 2026 21:53:25 +1100 Subject: [PATCH] fix(umami): add default SCRIPT_URL in zod.ts (#27114) * fix(umami): add default SCRIPT_URL in zod.ts * fix(umami): update default URLs to cloud.umami.is --------- Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> --- .../app-store/umami/components/EventTypeAppCardInterface.tsx | 2 +- packages/app-store/umami/zod.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app-store/umami/components/EventTypeAppCardInterface.tsx b/packages/app-store/umami/components/EventTypeAppCardInterface.tsx index 9af6bb7b3e..6bbb3447a8 100644 --- a/packages/app-store/umami/components/EventTypeAppCardInterface.tsx +++ b/packages/app-store/umami/components/EventTypeAppCardInterface.tsx @@ -30,7 +30,7 @@ const EventTypeAppCard: EventTypeAppCardComponent = function EventTypeAppCard({ disabled={disabled} name="Script URL" value={scriptURL} - defaultValue="https://us.umami.is/script.js" + defaultValue="https://cloud.umami.is/script.js" placeholder="Enter the script source URL" onChange={(e) => { setAppData("SCRIPT_URL", e.target.value); diff --git a/packages/app-store/umami/zod.ts b/packages/app-store/umami/zod.ts index 83716cb0a5..9318935021 100644 --- a/packages/app-store/umami/zod.ts +++ b/packages/app-store/umami/zod.ts @@ -5,7 +5,7 @@ import { eventTypeAppCardZod } from "@calcom/app-store/eventTypeAppCardZod"; export const appDataSchema = eventTypeAppCardZod.merge( z.object({ SITE_ID: z.string().optional(), - SCRIPT_URL: z.string().optional(), + SCRIPT_URL: z.string().optional().default("https://cloud.umami.is/script.js").or(z.undefined()), }) );