// src/libs/posthog/server.ts
import { PostHog } from "posthog-node";
var posthogKey = process.env.NEXT_PUBLIC_CONTRACTSPEC_POSTHOG_KEY;
var posthogHost = process.env.NEXT_PUBLIC_POSTHOG_HOST || "https://eu.posthog.com";
var posthogServer = posthogKey ? new PostHog(posthogKey, {
  host: posthogHost,
  flushAt: 1,
  flushInterval: 0
}) : null;
var server_default = posthogServer;
export {
  server_default as default
};
