fix: default to auto on empty PUB_VERTD_URL

This commit is contained in:
Maya 2025-10-17 22:21:46 +03:00
parent 17a1e16545
commit 9bae3620ce
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -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;