Skip to content

Commit 223ecda

Browse files
authored
fix(posthog): add rewrites for posthog reverse proxy routes unconditionally, remove unused POSTHOG_ENABLED envvar (#1548)
1 parent 7dde01e commit 223ecda

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

apps/sim/lib/env.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export const env = createEnv({
8989
TELEMETRY_ENDPOINT: z.string().url().optional(), // Custom telemetry/analytics endpoint
9090
COST_MULTIPLIER: z.number().optional(), // Multiplier for cost calculations
9191
LOG_LEVEL: z.enum(['DEBUG', 'INFO', 'WARN', 'ERROR']).optional(), // Minimum log level to display (defaults to ERROR in production, DEBUG in development)
92-
POSTHOG_ENABLED: z.boolean().optional(), // Enable PostHog analytics and session recording
9392

9493
// External Services
9594
BROWSERBASE_API_KEY: z.string().min(1).optional(), // Browserbase API key for browser automation

apps/sim/next.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,6 @@ const nextConfig: NextConfig = {
239239
return redirects
240240
},
241241
async rewrites() {
242-
if (!isTruthy(env.POSTHOG_ENABLED)) {
243-
return []
244-
}
245-
246242
return [
247243
{
248244
source: '/ingest/static/:path*',

0 commit comments

Comments
 (0)