Skip to content

Commit e4966c8

Browse files
rita3koaaron-ruby-df
authored andcommitted
fix routes (cloudflare#40)
1 parent 39d1357 commit e4966c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

products/workers/src/content/cli-wrangler/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ Keys to configure per project in your `wrangler.toml`.
5454
- This is a boolean flag that specifies if your worker will be deployed to your [workers.dev](https://workers.dev) subdomain. If omitted defaults to false.
5555

5656
- `route` <Type>not inherited</Type> <PropMeta>optional</PropMeta>
57-
- A list of routes you’d like to use your worker on. These follow exactly the same rules a `route`, but you can specify a list of them.<br />`routes = ["http://example.com/hello", "http://example.com/goodbye"]` One key of `route`OR `routes` is only if you are not using a [workers.dev](https://workers.dev) subdomain.
57+
- A route, specified by URL pattern, on your zone that you would like to run your Worker on. <br />`route = "http://example.com/*"`. A `route` OR `routes` key is only required if you are not using a [workers.dev](https://workers.dev) subdomain.
5858

5959
- `routes` <Type>not inherited</Type> <PropMeta>optional</PropMeta>
60-
- A list of routes you’d like to use your worker on. These follow exactly the same rules a `route`, but you can specify a list of them.<br />`routes = ["http://example.com/hello", "http://example.com/goodbye"]` One key of `route`OR `routes` is only if you are not using a [workers.dev](https://workers.dev) subdomain.
60+
- A list of routes you’d like to use your worker on. These follow exactly the same rules a `route`, but you can specify a list of them.<br />`routes = ["http://example.com/hello", "http://example.com/goodbye"]`. A `route` OR `routes` key is only required if you are not using a [workers.dev](https://workers.dev) subdomain.
6161

6262
- `webpack_config` <Type>inherited</Type> <PropMeta>optional</PropMeta>
6363
- This is the path to a custom webpack configuration file for your worker. You must specify this field to use a custom webpack configuration, otherwise Wrangler will use a default configuration for you. Visit the [Wrangler webpack page](/cli-wrangler/webpack) for more information.

0 commit comments

Comments
 (0)