Skip to content

ci: deploy web UI previews to Cloudflare Pages #77

Description

@amirbahador-hub

Right now the only way to review UI changes is reading the diff. We should deploy the web UI on every PR so reviewers get a live preview link, same way fastapi does it for their docs.

Plan:

  • add output: "export" to apps/web-ui/next.config.ts (the app is fully client side, no server features, so static export just works)
  • new GitHub Actions workflow that builds the UI and deploys with wrangler
    • PRs get a preview URL commented on the PR
    • pushes to main deploy production
  • API base URL goes in as an env var so previews can point at a staging backend later when the fastify backend lands

Needs from whoever picks this up: a free Cloudflare account with a Pages project, plus two repo secrets (CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID).

Scope: UI only. Backend preview environments are out of scope until the backend actually exists.

Metadata

Metadata

Assignees

Labels

cici related issuesenhancementNew feature or requestweb-uiWeb UI package

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions