From 9bae3620ce0ba443e43ef797f680d02fe0fe564a Mon Sep 17 00:00:00 2001 From: Maya Date: Fri, 17 Oct 2025 22:21:46 +0300 Subject: [PATCH] fix: default to auto on empty PUB_VERTD_URL --- src/lib/sections/settings/vertdSettings.svelte.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/sections/settings/vertdSettings.svelte.ts b/src/lib/sections/settings/vertdSettings.svelte.ts index ccdbf4d..d9cb5e4 100644 --- a/src/lib/sections/settings/vertdSettings.svelte.ts +++ b/src/lib/sections/settings/vertdSettings.svelte.ts @@ -55,7 +55,8 @@ export class VertdInstance { // if custom vertd url and no saved setting, default to the custom url if (!ls) { - const isCustomUrl = PUB_VERTD_URL !== "https://vertd.vert.sh"; + const isCustomUrl = + PUB_VERTD_URL && PUB_VERTD_URL !== "https://vertd.vert.sh"; if (isCustomUrl) { this.inner = { type: "custom" }; return;