All files / Rindu/utils environment.ts

100% Statements 9/9
100% Branches 4/4
100% Functions 3/3
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 958x 56x     47x 58x 83x 81x  
export const getSiteUrl = (): string =>
  isProduction()
    ? (process.env.NEXT_PUBLIC_SITE_URL as string)
    : "http://localhost:3000";
export const isProduction = (): boolean =>
  process.env.NODE_ENV === "production";
export const isServer = (): boolean =>
  !(typeof window != "undefined" && window.document);