Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ npm run test # Run tests
```bash
cd packages/worker
npm run deploy # builds the tracker bundle, then wrangler deploy
# wrangler.toml must list every custom domain the worker serves (api. and
# analytics.). A deploy detaches any custom domain that is not declared.

cd packages/dashboard
npx wrangler pages deploy dist # Deploy dashboard
Expand Down
8 changes: 8 additions & 0 deletions packages/worker/wrangler.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@ enabled = true
# auto-creates the DNS record + cert on `wrangler deploy` when the apex is a zone
# on this account. Put the dashboard on a sibling subdomain (app.<domain>) so the
# session cookie (COOKIE_DOMAIN=<domain>) is first-party same-site.
#
# List EVERY custom domain the worker serves. Wrangler replaces the worker's
# custom-domain set with the ones declared here on each deploy, so a hostname
# left out (for example the tracking origin your sites' tracker.js points at)
# is detached and its DNS record removed the next time you deploy.
# [[routes]]
# pattern = "api.yoursite.com"
# custom_domain = true
# [[routes]]
# pattern = "analytics.yoursite.com"
# custom_domain = true

# Legacy v0 dataset — still bound, dual-emitted to during the v0 → v1 migration.
[[analytics_engine_datasets]]
Expand Down
Loading