Skip to content

Commit

Permalink
fix routes (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
rita3ko authored Oct 19, 2020
1 parent 3e00c81 commit cdc8466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions products/workers/src/content/cli-wrangler/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ Keys to configure per project in your `wrangler.toml`.
- 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.

- `route` <Type>not inherited</Type> <PropMeta>optional</PropMeta>
- 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.
- 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.

- `routes` <Type>not inherited</Type> <PropMeta>optional</PropMeta>
- 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.
- 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.

- `webpack_config` <Type>inherited</Type> <PropMeta>optional</PropMeta>
- 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.
Expand Down

0 comments on commit cdc8466

Please sign in to comment.