Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniGuardiola committed Mar 20, 2024
1 parent 00348b2 commit e62d620
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/utils/is-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e62d620

Please sign in to comment.