From cdc846608d9ebef792497da097f5c14682426a1b Mon Sep 17 00:00:00 2001 From: Rita Kozlov <2414910+rita3ko@users.noreply.github.com> Date: Mon, 19 Oct 2020 10:27:36 -0700 Subject: [PATCH] fix routes (#40) --- products/workers/src/content/cli-wrangler/configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/products/workers/src/content/cli-wrangler/configuration.md b/products/workers/src/content/cli-wrangler/configuration.md index 2cb0a5903fc942..027b8e043139a2 100644 --- a/products/workers/src/content/cli-wrangler/configuration.md +++ b/products/workers/src/content/cli-wrangler/configuration.md @@ -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` not inherited optional - - 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.
`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.
`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` not inherited optional - - 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.
`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.
`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` inherited optional - 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.