Cloudflare Pages
Projects
| Project Name | Custom Domain | Fallback Domain | Environment |
|---|---|---|---|
semalink-website | semalink.africa | semalink-website.pages.dev | Production (website) |
semalink-app-staging | staging-app.semalink.africa | semalink-app-staging.pages.dev | Staging |
semalink-app-test | test-app.semalink.africa | semalink-app-test.pages.dev | Test |
semalink-app | app.semalink.africa | semalink-app.pages.dev | Production (app) |
Configuration
All app projects are configured with:
- Production branch:
main - Git provider: None (direct upload via GitHub Actions)
- Build output directory:
dist/
Deployment Method
Deployments use cloudflare/pages-action@v1, which uploads the built dist/ folder directly to Cloudflare Pages via the API.
Required secrets per environment:
| Secret | Description |
|---|---|
CLOUDFLARE_API_TOKEN | API token with Pages write permission |
CLOUDFLARE_ACCOUNT_ID | a9e39304b10e79b6b6e7c73a128b8ce7 |
Rollback
To roll back to a previous deployment without a code change:
- Go to Cloudflare Dashboard → Pages → select the project
- Click Deployments tab
- Find the deployment to roll back to → click Rollback to this deployment
Rollback is instant — no rebuild required.