Skip to content

Commit af836cf

Browse files
committed
docs: adding vercel rewrite
1 parent 08c4f0c commit af836cf

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

docs/pages/_app.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import { PostHogProvider } from 'posthog-js/react'
99

1010
if (typeof window !== 'undefined' && process.env.NEXT_PUBLIC_POSTHOG) {
1111
posthog.init(process.env.NEXT_PUBLIC_POSTHOG, {
12-
api_host: 'https://us.i.posthog.com',
12+
api_host: 'https://kty.dev/ingest',
13+
ui_host: 'https://us.posthog.com',
1314
loaded: (posthog) => {
1415
if (process.env.NODE_ENV === 'development') posthog.debug()
1516
},

docs/vercel.json

+12
Original file line numberDiff line numberDiff line change
@@ -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*",
9+
"destination": "https://us.i.posthog.com/:path*"
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)