We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08c4f0c commit af836cfCopy full SHA for af836cf
docs/pages/_app.tsx
@@ -9,7 +9,8 @@ import { PostHogProvider } from 'posthog-js/react'
9
10
if (typeof window !== 'undefined' && process.env.NEXT_PUBLIC_POSTHOG) {
11
posthog.init(process.env.NEXT_PUBLIC_POSTHOG, {
12
- api_host: 'https://us.i.posthog.com',
+ api_host: 'https://kty.dev/ingest',
13
+ ui_host: 'https://us.posthog.com',
14
loaded: (posthog) => {
15
if (process.env.NODE_ENV === 'development') posthog.debug()
16
},
docs/vercel.json
@@ -0,0 +1,12 @@
1
+{
2
+ "rewrites": [
3
+ {
4
+ "source": "/ingest/static/:path*",
5
+ "destination": "https://us-assets.i.posthog.com/static/:path*"
6
+ },
7
8
+ "source": "/ingest/:path*",
+ "destination": "https://us.i.posthog.com/:path*"
+ }
+ ]
+}
0 commit comments