Devflare Docs
Deploy Ship & operate

Run deploy commands as explicit recipes with expected files and effects

Use build, dry-run, production deploy, named preview deploy, same-worker preview upload, cleanup, and GitHub Actions as separate recipes with visible effects.

Deploy docs should start from commands a developer can copy and the artifacts or remote effects they should expect, then move caveats into boundary notes after the working recipe.

Best for
Shipping without guessing target or cleanup behavior
Local artifacts
and
Remote effects
Only deploy commands with explicit targets touch Cloudflare

Command recipes

TaskCommandExpected result
Build local artifactsWrites deploy-ready generated output; does not touch Cloudflare.
Inspect compiled configPrints Wrangler-facing config for review.
Dry-run production deployExercises deploy planning without uploading.
Production deployUploads to the stable production Worker name.
Same-worker preview uploadUses Cloudflare same-worker preview behavior and synthetic preview scope.
Named preview scopeUses explicit preview scope for resource naming, logs, and cleanup.
Inspect preview bindingsShows resolved preview resources and worker references.
Clean preview resourcesDeletes preview-owned resources and dedicated preview workers when applicable.

Same-worker preview vs named preview scope

ModelUse whenTiny example
Same-worker previewYou want Cloudflare preview upload behavior and do not need a human-named resource scope.
Named preview scopeYou want logs, resource names, cleanup, and GitHub feedback tied to a visible name.
Branch-scoped worker familyDurable Objects, queues, crons, or service topology need stronger isolation. plus dedicated preview worker naming

Preview resource lifecycle by feature

FeatureLifecycle stance
KV, D1, R2, Queues, VectorizeCan be preview-scoped and managed when authored with preview-aware names.
Services and Durable ObjectsWorker naming and migrations require explicit preview strategy; cleanup can remove preview-only workers.
Analytics Engine and Browser RenderingReported as warnings because there is no ordinary account resource to delete.
HyperdriveCleanup can remove existing preview configs, but database ownership stays product-owned.
AI, Images, Media, ContainersProduct-owned remote behavior; use smoke tests and usage limits rather than pretending local cleanup owns the product.

Minimal GitHub Actions preview workflow

Preview workflow

Previous

GitHub workflows

Devflare ships reusable GitHub Actions for setup, impact checks, deploy execution, and feedback, plus supported workflow strategies for validation, previews, production, and cleanup.

Next

Production deploys

Production uses or , preview uses or . No target means no deploy.