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:
@@ -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
|
||||
|
@@ -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*",
|
||||
},
|
||||
];
|
||||
|
Reference in New Issue
Block a user