Environments
| Environment | Deployment | Data |
|---|---|---|
| Local | Local Workers and development servers | Emulated D1, KV, and Queues |
| Preview | Automatic after CI passes on main |
Dedicated Preview resources |
| Production | Manual once production resources are configured | Dedicated Production resources |
Preview web, API, and docs use preview.dshuniverse.com, preview-api.dshuniverse.com, and preview-docs.dshuniverse.com, respectively. Worker Custom Domains manage their DNS records and certificates. The planned production hosts are dshuniverse.com, api.dshuniverse.com, docs.dshuniverse.com, and admin.dshuniverse.com. The admin Worker disables its workers.dev entry point. Preview admin sign-in requires a dedicated HTTPS hostname protected by Cloudflare Access.
Cloudflare resources
Section titled “Cloudflare resources”| Resource | Preview | Production |
|---|---|---|
| D1 | dshu-preview-db |
dshu-prod-db |
| KV | dshu-preview-kv |
dshu-prod-kv |
| Scan queue | dshu-preview-scan-jobs |
dshu-prod-scan-jobs |
| Scan dead-letter queue | dshu-preview-scan-jobs-dlq |
dshu-prod-scan-jobs-dlq |
| Analytics Engine | dshu_preview_events |
dshu_prod_events |
API and pipeline use D1. Web and admin call API through service bindings. Define each environment’s bindings in the owning application’s wrangler.jsonc. Replace remaining Production resource ID placeholders during provisioning. See secrets for credentials.