Upload a new version without routing traffic to it

versions & rollback

// what it does

`versions upload` builds and uploads your Worker as a new version but does NOT send production traffic to it, unlike `wrangler deploy`. Use it to stage a change, test it on a preview URL, then promote later. `--preview-alias` gives the version a stable preview hostname.

// shell

$ wrangler versions upload --message "fix checkout bug"
$ wrangler versions upload --preview-alias staging

// gotcha

The version is live only on its preview URL, not your production route, until you run `wrangler versions deploy`. Don't expect `versions upload` to change what real users see.