Skip to content

Commit ae13e41

Browse files
don't choke on import.meta.env (#172)
1 parent 46061d4 commit ae13e41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/urls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ declare global {
1111
}
1212

1313
const DEFAULT_BASE_URL =
14-
import.meta.env.ARCHIVE_BASE_URL ?? "https://archiveofourown.org";
14+
import.meta.env?.ARCHIVE_BASE_URL ?? "https://archiveofourown.org";
1515

1616
globalThis.archiveBaseUrl = DEFAULT_BASE_URL;
1717

0 commit comments

Comments
 (0)