First-party, anonymous analytics for the public wiki — no client-side telemetry in the pip package. Pages Function middleware classifies each page request (AI agent / bot / human) by User-Agent server-side and counts it into D1; /api/stats serves the footer's aggregate counts alongside public PyPI install and GitHub star numbers.
16 lines
582 B
TOML
16 lines
582 B
TOML
# Cloudflare Pages config for vibetrading.wiki.
|
|
#
|
|
# The site is static; these settings only wire the analytics Pages Functions
|
|
# (functions/) to their D1 counter. The production binding is also set at the
|
|
# project level so it applies to CI deploys. Used directly when deploying or
|
|
# previewing from this directory: `cd wiki && wrangler pages dev` / `pages deploy`.
|
|
|
|
name = "vibetrading-wiki"
|
|
compatibility_date = "2026-01-01"
|
|
pages_build_output_dir = "."
|
|
|
|
[[d1_databases]]
|
|
binding = "DB"
|
|
database_name = "vibetrading-analytics"
|
|
database_id = "3c1eca42-91e1-45e9-adcf-400559ba1b99"
|