Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

Fix: PostHog host for cron job (#126)

Marc Klingen7c6b42811ba3
diff --git a/src/pages/api/cron/ingestion_metrics.ts b/src/pages/api/cron/ingestion_metrics.ts
index 316a47d3d0..d070ce7dfd 100644
--- a/src/pages/api/cron/ingestion_metrics.ts
+++ b/src/pages/api/cron/ingestion_metrics.ts
@@ -10,7 +10,7 @@ export default async function handler(
return res.status(200).json({ message: "No PostHog key provided" });
const posthog = new PostHog(process.env.NEXT_PUBLIC_POSTHOG_KEY, {
- host: process.env.NEXT_PUBLIC_POSTHOG_HOST || "https://eu.posthog.com",
+ host: "https://eu.posthog.com",
});
if (process.env.NODE_ENV === "development") posthog.debug();