Dry-run a deploy to validate config and bundle
local dev
// what it does
Builds the Worker bundle and resolves all bindings without uploading anything, printing what would deploy. Great as a pre-push CI gate or to inspect the emitted bundle in --outdir.
// shell
$ wrangler deploy --dry-run --outdir ./dist$ wrangler deploy --dry-run -c ./wrangler.staging.jsonc// gotcha
--dry-run skips auth and upload, so it only catches build/config problems, not runtime errors. It also won't create missing KV/R2/D1 resources that your config references.