-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
base: production
Are you sure you want to change the base?
Conversation
Deploying cloudflare-docs with Cloudflare Pages
|
|
||
### Disable in Wrangler | ||
|
||
In your `wrangler.toml` you can add `preview_urls = false` to disable preview URLs from generating and being accessible. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 :)
Summary
Screenshots (optional)
Documentation checklist