mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-26 20:57:24 +02:00
⏪️ Stop using reverse proxy for posthog
This commit is contained in:
parent
c0f1536939
commit
5d0f3f1a82
3 changed files with 3 additions and 24 deletions
|
@ -1,15 +1,5 @@
|
||||||
{
|
{
|
||||||
"installCommand": "pnpm install",
|
"installCommand": "pnpm install",
|
||||||
"buildCommand": "cd ../.. && pnpm db:generate && pnpm build:landing",
|
"buildCommand": "cd ../.. && pnpm db:generate && pnpm build:landing",
|
||||||
"outputDirectory": ".next",
|
"outputDirectory": ".next"
|
||||||
"rewrites": [
|
|
||||||
{
|
|
||||||
"source": "/relay-XiKLe/static/(.*)",
|
|
||||||
"destination": "https://eu-assets.i.posthog.com/static/$1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/relay-XiKLe/(.*)",
|
|
||||||
"destination": "https://eu.i.posthog.com/$1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,5 @@
|
||||||
{
|
{
|
||||||
"installCommand": "pnpm install",
|
"installCommand": "pnpm install",
|
||||||
"buildCommand": "cd ../.. && pnpm db:generate && pnpm build:web && pnpm db:deploy",
|
"buildCommand": "cd ../.. && pnpm db:generate && pnpm build:web && pnpm db:deploy",
|
||||||
"outputDirectory": ".next",
|
"outputDirectory": ".next"
|
||||||
"rewrites": [
|
|
||||||
{
|
|
||||||
"source": "/relay-XiKLe/static/(.*)",
|
|
||||||
"destination": "https://eu-assets.i.posthog.com/static/$1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/relay-XiKLe/(.*)",
|
|
||||||
"destination": "https://eu.i.posthog.com/$1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,8 +20,7 @@ if (typeof window !== "undefined" && process.env.NEXT_PUBLIC_POSTHOG_API_KEY) {
|
||||||
|
|
||||||
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_API_KEY, {
|
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_API_KEY, {
|
||||||
debug: false,
|
debug: false,
|
||||||
api_host: "/relay-XiKLe/",
|
api_host: process.env.NEXT_PUBLIC_POSTHOG_API_HOST,
|
||||||
ui_host: "https://eu.i.posthog.com",
|
|
||||||
capture_pageview: false,
|
capture_pageview: false,
|
||||||
capture_pageleave: true,
|
capture_pageleave: true,
|
||||||
disable_session_recording: true,
|
disable_session_recording: true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue