diff --git a/src/utils/is-host.ts b/src/utils/is-host.ts index d1c2f2f..bb1a2f9 100644 --- a/src/utils/is-host.ts +++ b/src/utils/is-host.ts @@ -7,25 +7,6 @@ export function isDrafts() { } export function isLocalhost() { - if (typeof document !== "undefined") { - if ( - ["localhost:", "127.0.0.1:"].some((host) => - document.location.host.startsWith(host) - ) - ) - console.log("isLocalhost failed client side"); - } else { - const { NODE_ENV, VERCEL_ENV } = process.env; - if ( - NODE_ENV === "development" || - (VERCEL_ENV && VERCEL_ENV === "development") - ) - console.log("isLocalhost failed server side", { - NODE_ENV, - VERCEL_ENV, - }); - } - if (typeof document !== "undefined") return ["localhost:", "127.0.0.1:"].some((host) => document.location.host.startsWith(host)