Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Running `npm create cloudflare@latest` will prompt you to install the create-clo
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "TypeScript",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Create a Worker project in the command line:
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "JavaScript",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Create a new Worker project named `browser-worker` by running:
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "TypeScript",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Create a new Worker project named `browser-worker` by running:
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "JavaScript / TypeScript",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Create your dynamic dispatch Worker. In this example, the dispatch Worker is cal
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "JavaScript",
}}
/>
Expand Down Expand Up @@ -135,6 +135,7 @@ export default {
},
};
```

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.

Deploy your dynamic dispatch Worker:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Support for Workers for Platforms with `wrangler dev` in local mode is experimen
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "JavaScript",
}}
/>
Expand Down Expand Up @@ -77,7 +77,7 @@ dispatch_namespace = "my-namespace"
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "JavaScript",
}}
/>
Expand Down Expand Up @@ -111,8 +111,6 @@ export default {

Update the Wrangler file for dispatch-worker and add the dispatch namespace binding:



<WranglerConfig>

```toml
Expand All @@ -139,7 +137,7 @@ outbound = { service = "outbound-worker", parameters = ["paramCustomerName"] }
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "JavaScript",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ This will prompt you to install the [`create-cloudflare`](https://www.npmjs.com/
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "JavaScript",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ This approach allows you to:
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "JavaScript",
}}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/d1/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Create a new Worker as the means to query your database.
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "TypeScript",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Use [C3](https://developers.cloudflare.com/learning-paths/workers/get-started/c3
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "JavaScript",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Create a new Worker to create and deploy your API.
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "TypeScript",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ To get started developing your Worker you will use the [`create-cloudflare` CLI]
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "TypeScript",
}}
/>
Expand Down Expand Up @@ -95,8 +95,6 @@ npx wrangler r2 bucket create <YOUR_BUCKET_NAME>
This works similar to the D1 database creation, where you will need to replace `<YOUR_BUCKET_NAME>` with the name you want to use for your bucket.
To do this, go to the Wrangler file again and then add the following lines:



<WranglerConfig>

```toml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Running `create cloudflare@latest` will install [Wrangler](/workers/wrangler/ins
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker Using Durable Objects",
type: "Worker + Durable Objects",
lang: "TypeScript",
}}
/>
Expand Down Expand Up @@ -229,8 +229,6 @@ Migrations are performed through the `[[migrations]]` configurations key in your

The Durable Object migration to create a new Durable Object class with SQLite storage backend will look like the following in your Worker's Wrangler file:



<WranglerConfig>

```toml
Expand Down
6 changes: 1 addition & 5 deletions src/content/docs/durable-objects/get-started/tutorial.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Running `create cloudflare@latest` will install [Wrangler](/workers/wrangler/ins
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker using Durable Objects",
type: "Worker + Durable Objects",
lang: "JavaScript / TypeScript",
}}
/>
Expand Down Expand Up @@ -205,8 +205,6 @@ Migrations are performed through the `[[migrations]]` configurations key in your

The Durable Object migration to create a new Durable Object class will look like the following in your Worker's Wrangler file:



<WranglerConfig>

```toml
Expand All @@ -229,8 +227,6 @@ A Durable Object class can only have a single storage type, which cannot be chan

To configure SQL storage and API, replace `new_classes` with `new_sqlite_classes` in your Worker's Wrangler file:



<WranglerConfig>

```toml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Create a new Worker project to create and deploy your app.
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker Using Durable Objects",
type: "Worker + Durable Objects",
lang: "TypeScript",
}}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/hyperdrive/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Create a new project named `hyperdrive-tutorial` by running:
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "TypeScript",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Run the following command to create a Worker project from the command line:
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "TypeScript",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ To get started, create a Worker application using the [`create-cloudflare` CLI](
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "TypeScript",
}}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/kv/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Create a new Worker to read and write to your KV namespace.
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "TypeScript",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ This will prompt you to install the [`create-cloudflare`](https://www.npmjs.com/
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "JavaScript",
}}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/pages/get-started/c3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pnpm create cloudflare@latest [--] [<DIRECTORY>] [OPTIONS] [-- <NESTED ARGS...>]

- The possible values for this option are:

- `hello-world`: Hello World example
- `hello-world`: Hello World Starter
- `web-framework`: Framework Starter
- `demo`: Application Starter
- `remote-template`: Template from a GitHub repo
Expand Down
4 changes: 1 addition & 3 deletions src/content/docs/queues/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ To create a producer Worker, run:
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "TypeScript",
}}
/>
Expand Down Expand Up @@ -188,8 +188,6 @@ Each queue can only have one consumer Worker connected to it. If you try to conn

To connect your queue to your consumer Worker, open your Wrangler file and add this to the bottom:



<WranglerConfig>

```toml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ To get started, create a Worker application using the [`create-cloudflare` CLI](
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "TypeScript",
}}
/>
Expand Down Expand Up @@ -96,8 +96,6 @@ It is important to include the `max_batch_size` of two to the consumer queue is

Your final Wrangler file should look similar to the example below.



<WranglerConfig>

```toml title="wrangler.toml"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ To get started, create a Worker application using the [`create-cloudflare` CLI](
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "TypeScript",
}}
/>
Expand Down Expand Up @@ -109,8 +109,6 @@ npm install robots-parser

Then, add a Browser Rendering binding. Adding a Browser Rendering binding gives the Worker access to a headless Chromium instance you will control with Puppeteer.



<WranglerConfig>

```toml
Expand All @@ -136,8 +134,6 @@ Created queue queues-web-crawler.

Then, in your Wrangler file, add the following:



<WranglerConfig>

```toml
Expand All @@ -156,8 +152,6 @@ Adding the `max_batch_timeout` of 60 seconds to the consumer queue is important

Your final Wrangler file should look similar to the one below.



<WranglerConfig>

```toml
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/r2/api/workers/workers-api-usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To get started, open a terminal window and run:
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "JavaScript",
}}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/r2/tutorials/summarize-pdf.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Create a new Worker project by running the following commands:
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "TypeScript",
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Create a new Worker with C3 (`create-cloudflare` CLI). [C3](/pages/get-started/c
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "TypeScript",
}}
/>
Expand Down
6 changes: 1 addition & 5 deletions src/content/docs/radar/investigate/bgp-anomalies.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ First, create a new Workers app in a local directory:
product="workers"
params={{
category: "hello-world",
type: "Hello World Worker",
type: "Worker only",
lang: "JavaScript",
}}
/>
Expand Down Expand Up @@ -216,8 +216,6 @@ crons = [ "*/5 * * * *" ]

In this example, we will also need to use Cloudflare KV to save the latest checked event IDs which allows us to know what events are new. Once you have created a KV, you can head back to the `wranglers.toml` file and add the following sections:



<WranglerConfig>

```toml
Expand Down Expand Up @@ -372,8 +370,6 @@ If you have [Email Routing][email-routing] enabled for your domain, you can also

For this alert to work, you will need to configure the proper email bindings in the [Wrangler configuration file][wrangler-send-email].



<WranglerConfig>

```toml
Expand Down
Loading