- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1k
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the solution
For internal context, see https://wiki.cfdata.org/pages/viewpage.action?pageId=1187489699
When using both Wrangler and the dash to update a Worker, it's easy to get into situations where there's a potential conflict. Today, Wrangler warns about those cases in interactive mode, but it doesn't provide much information about why there's a diff.
 
We should:
- Display a rich diff of what the actual config differences are (instead of just a warning that differences exist), so that the user has the opportunity to review. We can re-use the init --from-dashcodepaths here that can already construct a representation of a Worker's remote state as Wrangler config.
- If the user chooses not to deploy, we should offer to update their local wrangler.jsonwith the remote changes (this will only work for json config files).
- We should implement an opt-in "strict-mode" that fails deploys with config conflicts in non-interactice mode if a --forceflag isn't provided. i.e. a user would usewrangler deploy --strictas their deploy command.
Sub-issues
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Backlog