Skip to content

Commit 0b7ed15

Browse files
committed
docs: improve dispatch Worker description
1 parent 3a8a879 commit 0b7ed15

File tree

1 file changed

+6
-6
lines changed
  • src/content/docs/cloudflare-for-platforms/workers-for-platforms/get-started

1 file changed

+6
-6
lines changed

src/content/docs/cloudflare-for-platforms/workers-for-platforms/get-started/configuration.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ To upload and deploy the user Worker to the dispatch namespace, running the foll
6767
npx wrangler deploy --dispatch-namespace testing
6868
```
6969

70-
### 4. Create a dispatch Worker
70+
### 4. Create a dynamic dispatch Worker
7171

72-
A [dispatch Worker](/cloudflare-for-platforms/workers-for-platforms/reference/how-workers-for-platforms-works/#dynamic-dispatch-worker) is a specialized routing Worker that directs incoming requests to the appropriate user Workers in your dispatch namespace. Instead of using traditional route mappings, dispatch Workers let you programmatically control request routing through code.
72+
A [dynamic dispatch Worker](/cloudflare-for-platforms/workers-for-platforms/reference/how-workers-for-platforms-works/#dynamic-dispatch-worker) is a specialized routing Worker that directs incoming requests to the appropriate user Workers in your dispatch namespace. Instead of using traditional route mappings, dispatch Workers let you programmatically control request routing through code.
7373

7474
#### Why use a dynamic dispatch Worker?
7575

@@ -85,15 +85,15 @@ A [dispatch Worker](/cloudflare-for-platforms/workers-for-platforms/reference/ho
8585
* Attach useful context like user IDs or account information
8686
* Transform requests or responses as needed
8787

88-
**To create your dispatch Worker:**
88+
**To create your dynamic dispatch Worker:**
8989

9090
Navigate up a level from your user Worker's project directory:
9191

9292
```sh
9393
cd ..
9494
```
9595

96-
Create your dispatch Worker. In this example, the dispatch Worker is called `my-dispatcher`.
96+
Create your dynamic dispatch Worker. In this example, the dispatch Worker is called `my-dispatcher`.
9797

9898
<PackageManagers type="create" pkg="cloudflare@latest" args={"my-dispatcher"} />
9999

@@ -137,9 +137,9 @@ export default {
137137
},
138138
};
139139
```
140-
This example shows a simple dispatch Worker that routes all requests to a single user Worker. For more advanced routing patterns, you could route based on hostname, path, custom metadata, or other request properties.
140+
This example shows a simple dynamic dispatch Worker that routes all requests to a single user Worker. For more advanced routing patterns, you could route based on hostname, path, custom metadata, or other request properties.
141141

142-
Deploy your dispatch Worker:
142+
Deploy your dynamic dispatch Worker:
143143

144144
```sh
145145
npx wrangler deploy

0 commit comments

Comments
 (0)