Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

425 B
Raw Blame
// Writes posthog.schema.json from the zod definitions in src/core/config.ts. Run `pnpm --filter
// @posthog/hog schema` after changing them; a test fails while the file is out of date.
import { writeFileSync } from 'node:fs'
import { join } from 'node:path'

import { configSchema } from '../src/core/config'

writeFileSync(join(import.meta.dir, '..', 'posthog.schema.json'), `${JSON.stringify(configSchema(), null, 2)}\n`)