Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

danielrs
Copy link
Contributor

@danielrs danielrs commented Sep 3, 2025

Wrangler will sometimes skip the API call if the config file matches the remote state. The flag lets us skip this behavior, and force the subdomain deployment.

Follow up of: #10478

Describe your change...

Adds --force-subdomain-deploy flag to wrangler triggers deploy.

  • Tests
    • Tests included
    • Tests not necessary because: experimental command.
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: experimental command.
  • Wrangler V3 Backport
    • Wrangler PR:
    • Not necessary because: experimental command.

@danielrs danielrs requested a review from a team as a code owner September 3, 2025 20:45
Copy link

changeset-bot bot commented Sep 3, 2025

🦋 Changeset detected

Latest commit: 962f91d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
wrangler Minor
@cloudflare/vite-plugin Major
@cloudflare/vitest-pool-workers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented Sep 3, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@10549

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@10549

miniflare

npm i https://pkg.pr.new/miniflare@10549

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@10549

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@10549

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@10549

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@10549

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@10549

wrangler

npm i https://pkg.pr.new/wrangler@10549

commit: 962f91d

@danielrs danielrs force-pushed the drivas/wrangler-triggers-deploy-force-subdomain branch 2 times, most recently from 24c5b94 to 8606513 Compare September 3, 2025 23:41
routes: Route[],
deployments: Array<Promise<string[]>>
deployments: Array<Promise<string[]>>,
forceSubdomainDeploy: boolean
Copy link
Contributor

@vicb vicb Sep 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need to add an arg, given that we pass props.forceSubdomainDeploy and props is already the first arg?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like it is good to be explicit about forcing here. I want to get rid of props arg eventually.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please reconsider this for now?

You can still explicitly pass props.forceSubdomainDeploy later at the time you refactor the code.

@danielrs danielrs force-pushed the drivas/wrangler-triggers-deploy-force-subdomain branch from 8606513 to 46b317e Compare September 4, 2025 15:03
@danielrs danielrs changed the title feat: add wrangler triggers deploy --force-subdomain-deploy flag Adds the --force-subdomain-deploy flag to the wrangler triggers deploy command Sep 5, 2025
@danielrs danielrs force-pushed the drivas/wrangler-triggers-deploy-force-subdomain branch from 46b317e to 82b8bf8 Compare September 5, 2025 16:34
Wrangler will sometimes skip the API call if the config file matches
the remote state. However, we need to be able to force it in some
cases.
@danielrs danielrs force-pushed the drivas/wrangler-triggers-deploy-force-subdomain branch from 82b8bf8 to 962f91d Compare September 5, 2025 20:07
Copy link
Member

@edmundhung edmundhung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need tests even for experimental command

@github-project-automation github-project-automation bot moved this from Untriaged to In Review in workers-sdk Sep 8, 2025
@petebacondarwin petebacondarwin marked this pull request as draft September 8, 2025 13:35
@danielrs
Copy link
Contributor Author

danielrs commented Sep 8, 2025

We did some changes in the API that should make this flag less urgent.
Closing for now.

@danielrs danielrs closed this Sep 8, 2025
@github-project-automation github-project-automation bot moved this from In Review to Done in workers-sdk Sep 8, 2025
@danielrs danielrs deleted the drivas/wrangler-triggers-deploy-force-subdomain branch September 8, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants