Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Workers] Preview URL updates #18173

Draft
wants to merge 1 commit into
base: production
Choose a base branch
from

Conversation

WalshyDev
Copy link
Member

Summary

Screenshots (optional)

Documentation checklist

  • The documentation style guide has been adhered to.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

Copy link

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: b4f7e53
Status: ✅  Deploy successful!
Preview URL: https://86e98476.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://walshy-preview-url-updates.cloudflare-docs-7ou.pages.dev

View logs


### Disable in Wrangler

In your `wrangler.toml` you can add `preview_urls = false` to disable preview URLs from generating and being accessible.
Copy link
Contributor

Choose a reason for hiding this comment

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

They are still generated when off, so we should probably shorten to just "being accessible."

```toml
name = "my-worker"
compatibility_date = "2024-01-01"
preview_urls = false
Copy link
Contributor

Choose a reason for hiding this comment

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

trigger-deploy (or regular deploy) is required for this to take effect, probably worth mentioning? We don't make it super obvious that workers_dev isn't synced until trigger-deploy/deploy, as we only specifically say that for disablement: https://developers.cloudflare.com/workers/configuration/routing/workers-dev/#disabling-workersdev

speaking of which, that link's mention of preview-urls is now outdated.


### Disable on the Cloudflare dashboard

TODO: Not finished this yet
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks great so far! Ping me when ready for rereview :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product:workers Related to Workers product size/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants