Skip to content

feat: void deploy --dry-run #11

Closed
Closed

Description

@hyfdev

Motivation

There's no way to validate a deploy without actually deploying. Deploy bugs (e.g. non-JS files packaged as worker modules, bad bindings, unsupported manifest versions) are only caught when the platform rejects the upload.

A --dry-run flag would run the full deploy pipeline and validate server-side, without actually going live.

Proposed behavior

void deploy --dry-run should go through the entire deploy process — build, package, and server-side validation — but stop before the actual deployment (no resource provisioning, no Cloudflare upload, no routing updates).

  1. Auth — required (same as normal deploy)
  2. Project resolution — required (same as normal deploy)
  3. Build — runs normally (skippable with --skip-build)
  4. Package — runs normally
  5. Server-side validation — new platform endpoint that accepts the same payload and runs all pre-upload checks (manifest version, migration SQL, reserved binding names, worker file types)
  6. Skip actual deploy — no resource provisioning, no Cloudflare API calls, no KV routing updates
  7. Report — print validation results and a summary of what would be deployed

This matches the convention used by wrangler (wrangler deploy --dry-run), kubectl (--dry-run=server), and helm (--dry-run).

Activity

  1. added theissue type on Mar 1, 2026
  2. fengmk2 commented on Mar 1, 2026

    @fengmk2
    Member

    It seems to be the function of void preview deploy.

  3. cpojer commented on Sep 29, 2026

    @cpojer
    Member

    No longer relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions