1
mirror of https://github.com/jakejarvis/hoot.git synced 2025-10-18 14:24:26 -04:00

Update PostHog API host and rewrite paths for proxy integration

This commit is contained in:
2025-10-02 21:10:39 -04:00
parent a5ea9cd546
commit eb5d3bd8a5
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
import posthog from "posthog-js";
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY as string, {
api_host: "/_ingest",
api_host: "/_proxy/ingest",
ui_host: "https://us.posthog.com",
defaults: "2025-05-24",
capture_exceptions: true, // This enables capturing exceptions using Error Tracking, set to false if you don't want this

View File

@@ -23,11 +23,11 @@ const nextConfig: NextConfig = {
rewrites: async () => {
return [
{
source: "/_ingest/static/:path*",
source: "/_proxy/ingest/static/:path*",
destination: "https://us-assets.i.posthog.com/static/:path*",
},
{
source: "/_ingest/:path*",
source: "/_proxy/ingest/:path*",
destination: "https://us.i.posthog.com/:path*",
},
];