From 999cc48d2711e6daf4e62262bbca828317c76fde Mon Sep 17 00:00:00 2001 From: Essential Randomness Date: Mon, 26 Jan 2026 18:06:10 -0800 Subject: [PATCH] don't choke on import.meta.env --- src/urls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/urls.ts b/src/urls.ts index f56c21d..b187e68 100644 --- a/src/urls.ts +++ b/src/urls.ts @@ -11,7 +11,7 @@ declare global { } const DEFAULT_BASE_URL = - import.meta.env.ARCHIVE_BASE_URL ?? "https://archiveofourown.org"; + import.meta.env?.ARCHIVE_BASE_URL ?? "https://archiveofourown.org"; globalThis.archiveBaseUrl = DEFAULT_BASE_URL;