Skip to content

Commit 36ad211

Browse files
authored
docs: Workers preview_urls default to workers_dev (#25766)
1 parent 38487d6 commit 36ad211

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/content/docs/workers/configuration/previews.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ New versions of a Worker are created when you run:
4545
- [`wrangler versions upload`](/workers/wrangler/commands/#upload)
4646
- Or when you make edits via the Cloudflare dashboard
4747

48-
If Preview URLs have been enabled, they are **public by default** and available immediately after version creation.
48+
If Preview URLs have been enabled, they are public and available immediately after version creation.
4949

5050
:::note
5151
Minimum required Wrangler version: 3.74.0. Check your version by running `wrangler --version`. To update Wrangler, refer to [Install/Update Wrangler](/workers/wrangler/install-and-update/).
@@ -112,7 +112,8 @@ To limit your preview URLs to authorized emails only:
112112

113113
Note:
114114

115-
- Preview URLs are disabled by default.
115+
- Preview URLs are enabled by default when `workers_dev` is enabled.
116+
- Preview URLs are disabled by default when `workers_dev` is disabled.
116117
- Disabling Preview URLs will disable routing to both versioned and aliased preview URLs.
117118

118119
### From the Dashboard
@@ -156,7 +157,7 @@ preview_urls = false
156157

157158
</WranglerConfig>
158159

159-
If not given, `preview_urls = false` is the default.
160+
If not given, `preview_urls = workers_dev` is the default.
160161

161162
:::caution
162163
If you enable or disable Preview URLs in the Cloudflare dashboard, but do not update your Worker's Wrangler file accordingly, the Preview URLs status will change the next time you deploy your Worker with Wrangler.

src/content/docs/workers/wrangler/configuration.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ The `main` key is optional for assets-only Workers.
118118
- Enables use of `*.workers.dev` subdomain to deploy your Worker. If you have a Worker that is only for `scheduled` events, you can set this to `false`. Defaults to `true`. Refer to [types of routes](#types-of-routes).
119119

120120
- `preview_urls` <Type text="boolean" /> <MetaInfo text="optional" />
121-
- Enables use of Preview URLs to test your Worker. Defaults to `false`. Refer to [Preview URLs](/workers/configuration/previews).
121+
- Enables use of Preview URLs to test your Worker. Defaults to value of `workers_dev`. Refer to [Preview URLs](/workers/configuration/previews).
122122

123123
- `route` <Type text="Route" /> <MetaInfo text="optional" />
124124
- A route that your Worker should be deployed to. Only one of `routes` or `route` is required. Refer to [types of routes](#types-of-routes).
@@ -992,7 +992,7 @@ The following options are available:
992992
- To specify a custom instance type, see [here](#custom-instance-types).
993993

994994
- `max_instances` <Type text="string" /> <MetaInfo text="optional" />
995-
- The maximum number of concurrent container instances you want to run at any given moment. Stopped containers do not count towards this - you may have more container instances than this number overall, but only this many actively running containers at once. If a request to start a container will exceed this limit, that request will error.
995+
- The maximum number of concurrent container instances you want to run at any given moment. Stopped containers do not count towards this - you may have more container instances than this number overall, but only this many actively running containers at once. If a request to start a container will exceed this limit, that request will error.
996996

997997
- Defaults to 20.
998998

0 commit comments

Comments
 (0)