fix: ignore import.meta type errors

This commit is contained in:
Bereket Engida
2024-09-02 23:42:07 +03:00
parent c9290eb37c
commit b3299b8019

View File

@@ -34,7 +34,8 @@ export function getBaseURL(url?: string, path?: string) {
typeof process !== "undefined" typeof process !== "undefined"
? process.env ? process.env
: typeof import.meta !== "undefined" : typeof import.meta !== "undefined"
? import.meta.env ? //@ts-ignore
import.meta.env
: {}; : {};
const fromEnv = const fromEnv =
env.BETTER_AUTH_URL || env.BETTER_AUTH_URL ||