Skip to content

feat(static): retain unique badge referrers - #53

Merged
nick-csu merged 1 commit into
pre-releasefrom
feat/badge-referrer-registry
Aug 27, 2026
Merged

feat(static): retain unique badge referrers#53
nick-csu merged 1 commit into
pre-releasefrom
feat/badge-referrer-registry

Conversation

@nick-csu

Copy link
Copy Markdown
Contributor

Summary

  • run a Worker only for the Built with Cortex SVG
  • retain normalized referrer hostnames in a D1 table with a case-insensitive primary key
  • provision and migrate the production database idempotently during deployment
  • verify production by submitting the same referrer twice and requiring one row

Validation

  • npm run --workspace=@cortex-docs/demo-api build
  • npm run --workspace=@cortex-docs/demo-api test
  • npx wrangler deploy --dry-run --config packages/demo-api/wrangler.static.jsonc
  • local D1 migration and duplicate insert check
  • npm run format:check
  • npm run lint

@nick-csu
nick-csu merged commit 91aa02d into pre-release Aug 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant