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.

1.2 KB
Raw Blame
{
    "$schema": "node_modules/wrangler/config-schema.json",
    "name": "oauth-proxy",
    // Secrets are set with `wrangler secret put` and cannot be declared here. The worker reads
    // OIDC_SIGNING_KEY, OIDC_SIGNING_KEY_INACTIVE_1 and OIDC_SIGNING_KEY_INACTIVE_2; see the
    // README section on ID tokens and the `Env` interface in src/index.ts.
    "main": "src/index.ts",
    "compatibility_date": "2025-03-10",
    "compatibility_flags": ["nodejs_compat"],
    "observability": {
        "enabled": true,
        "logs": {
            "enabled": true,
            "head_sampling_rate": 1.0,
            "persist": true,
        },
    },
    "rules": [
        {
            "type": "Text",
            "globs": ["src/static/**/*.html"],
            "fallthrough": true,
        },
        // The RoundHog faces the region picker serves are imported as ArrayBuffers from
        // @posthog/brand, so the page needs no third-party font host. See src/handlers/fonts.ts.
        {
            "type": "Data",
            "globs": ["**/*.woff2"],
            "fallthrough": true,
        },
    ],
    "kv_namespaces": [
        {
            "binding": "AUTH_KV",
            "id": "3ac9a85816994f3ea94f98364de4732a",
        },
    ],
}