Skip to content

Cloudflare Resources

At a glance

  • D1, KV, and R2 are shared across all events in a single unified worker.
  • Resources are configured in apps/event-site/wrangler.toml and bound at deploy time.
  • No per-event resource provisioning is needed; event isolation is enforced by event_id scoping in the database.

Do this

  1. Ensure the unified worker is configured with the correct Cloudflare bindings (D1, KV, R2).
  2. Create events via the platform UI at /platform/events/create.
  3. Validate the event resolves correctly on its configured subdomain.

When it fails

  • Cloudflare auth/permissions: verify account token scopes for D1/KV/R2/Workers.
  • Event not resolving: check platform_event_domains table and DNS configuration.
  • See Troubleshooting.

Released under the MIT License.