cabljac/cf-preview-stack
Vercel-style preview environments for Cloudflare Workers + D1 + KV
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| cloudflare_api_token | Cloudflare API token with Workers Scripts, D1, and Workers KV Storage permissions. | yes | — |
| cloudflare_account_id | Cloudflare account ID. | yes | — |
| workers | YAML list of wrangler config paths. Accepts a simple list of paths or objects with path and working_directory. | yes | — |
| github_token | GitHub token for posting PR comments. | no | ${{ github.token }} |
| comment | Whether to post/update a summary comment on the PR. | no | true |
| wrangler_version | Wrangler version to install. Pin to a specific version for stability (e.g. 3.99.0). | no | latest |
| cleanup | Run orphan cleanup mode instead of normal preview lifecycle. | no | false |
| secrets | JSON object of environment variable names to values. Injected as vars in each worker config before upload. Use for preview-specific secrets like AUTH_SECRET. | no | {} |
Outputs
| name | description |
|---|---|
| preview_urls | JSON object mapping worker name to preview *.workers.dev URL. |
| database_ids | JSON object mapping original database name to preview database ID. |
| kv_namespace_ids | JSON object mapping original KV namespace ID to preview namespace ID. |
| preview_alias | The alias used for preview versions, e.g. pr-42. |