Skip to content

deploy: Cloudflare Workers + Pages, domain, secrets, CI #1

Description

@lex00

Stand up the deployed app. Depends on chant being published (INTENTIUS/chant#431) so we can drop the file: deps.

Scope

  • Worker: wrangler deploy for src/handler.ts. Bind STATS KV (rate limit + counter); set secrets GIT_TOKEN and TURNSTILE_SECRET.
  • SPA: build web/ and deploy web/dist to Cloudflare Pages. Set VITE_API_BASE (the Worker URL) and VITE_TURNSTILE_SITEKEY at build time.
  • Domain: wire blacklight.intentius.io (Pages) and route /audit to the Worker (custom domain or a route).
  • Deps: replace file:/…/chant/* with the published @intentius/chant* range.
  • CI (GitHub Actions): on PR run just check + just e2e + just e2e-browser; on merge to main, deploy Worker + Pages.

Acceptance

  • https://blacklight.intentius.io serves the SPA; a real public-repo audit returns a report.
  • Worker has KV + secrets; rate limit + Turnstile active in prod.
  • CI deploys on merge; README documents the one-command deploy + ~$0 idle cost model.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions