From 96dff8900e2f220206927d594bd60707780d1a44 Mon Sep 17 00:00:00 2001 From: Offending Commit Date: Tue, 2 Jun 2026 14:31:40 -0500 Subject: [PATCH] refactor(web): use top-level z.url() over deprecated z.string().url() Zod v4 deprecates the chained .url() in favor of the top-level format validator. --- packages/web/src/lib/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/src/lib/config.ts b/packages/web/src/lib/config.ts index f7e8d8f..faa9b10 100644 --- a/packages/web/src/lib/config.ts +++ b/packages/web/src/lib/config.ts @@ -23,7 +23,7 @@ export function isCloudInstance(instance: Pick): boolean { } export const configSchema = z.object({ - baseUrl: z.string().url({ message: "Must be a valid URL" }), + baseUrl: z.url({ message: "Must be a valid URL" }), token: z.string().optional().default(""), }); @@ -32,7 +32,7 @@ export type Config = z.infer; export const instanceSchema = z.object({ id: z.string().min(1), name: z.string().min(1, { message: "Name is required" }), - baseUrl: z.string().url({ message: "Must be a valid URL" }), + baseUrl: z.url({ message: "Must be a valid URL" }), token: z.string().optional().default(""), });