Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

255 B
Raw Blame
export function useAppEnv() {
  const hostname = typeof window !== "undefined" ? window.location.hostname : "";

  if (hostname === "demo.rybbit.com") {
    return "demo";
  }
  if (hostname === "app.rybbit.io") {
    return "prod";
  }

  return null;
}