Files
Auto-Trader/wiki/wrangler.toml
T
Haozhe Wu 25b6ee5d72 feat(wiki): add agent-vs-human traffic counter to vibetrading.wiki
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.
2026-06-05 14:03:17 +08:00

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"