rebrand: final PostHog purge
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
export function getInsightsConfig(): { key: string; host: string } | null {
|
||||
const insightsKey = process.env.NEXT_PUBLIC_POSTHOG_KEY;
|
||||
const insightsKey = process.env.NEXT_PUBLIC_INSIGHTS_KEY;
|
||||
const insightsHost = `${process.env.NEXT_PUBLIC_BASE_URL}/ingest`;
|
||||
|
||||
if (!insightsKey || !insightsHost) {
|
||||
|
||||
@@ -3,8 +3,8 @@ import { NextRequest, NextResponse } from "next/server";
|
||||
export default async function InsightsMiddleware(req: NextRequest) {
|
||||
let url = req.nextUrl.clone();
|
||||
const hostname = url.pathname.startsWith("/ingest/static/")
|
||||
? "eu-assets.i.posthog.com"
|
||||
: "eu.i.posthog.com";
|
||||
? "eu-assets.i.insights.hanzo.ai"
|
||||
: "eu.i.insights.hanzo.ai";
|
||||
|
||||
// Handle OPTIONS method for CORS preflight
|
||||
if (req.method === "OPTIONS") {
|
||||
|
||||
Reference in New Issue
Block a user