You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/cloudflare-for-platforms/workers-for-platforms/get-started/configuration.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,9 +67,9 @@ To upload and deploy the user Worker to the dispatch namespace, running the foll
67
67
npx wrangler deploy --dispatch-namespace testing
68
68
```
69
69
70
-
### 4. Create a dispatch Worker
70
+
### 4. Create a dynamic dispatch Worker
71
71
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.
73
73
74
74
#### Why use a dynamic dispatch Worker?
75
75
@@ -85,15 +85,15 @@ A [dispatch Worker](/cloudflare-for-platforms/workers-for-platforms/reference/ho
85
85
* Attach useful context like user IDs or account information
86
86
* Transform requests or responses as needed
87
87
88
-
**To create your dispatch Worker:**
88
+
**To create your dynamic dispatch Worker:**
89
89
90
90
Navigate up a level from your user Worker's project directory:
91
91
92
92
```sh
93
93
cd ..
94
94
```
95
95
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`.
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.
0 commit comments