Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

323 B
Raw Blame
export function getPostHogConfig(): { key: string; host: string } | null {
  const postHogKey = process.env.NEXT_PUBLIC_POSTHOG_KEY;
  const postHogHost = `${process.env.NEXT_PUBLIC_BASE_URL}/ingest`;

  if (!postHogKey || !postHogHost) {
    return null;
  }

  return {
    key: postHogKey,
    host: postHogHost,
  };
}