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>
This commit is contained in:
co-authored by
Anik Dhabal Babu
parent
45ea59ceb8
commit
f00568e798
@@ -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);
|
||||
|
||||
@@ -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()),
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user