Skip to content

Commit 759a8b0

Browse files
committed
Fixed typos
1 parent 28363ce commit 759a8b0

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

src/content/docs/pipelines/build-with-pipelines/workers-apis.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Render, PackageManagers, WranglerConfig } from "~/components";
1313

1414
Pipelines exposes an API directly to your [Workers](/workers) scripts via the [bindings](/workers/runtime-apis/bindings/#what-is-a-binding) concept. Bindings allow you to securely send data to a Pipeline without having to manage API keys or clients. Sending data via a Worker is enabled by default.
1515

16-
## Send data from a Worker to a pipeline
16+
## Send data from a Worker
1717
### Setup a binding
1818
Bind to a pipeline by defining a `pipelines` binding within your Wrangler configuration. For example:
1919

src/content/docs/pipelines/getting-started.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ Batch hints:
9999

100100
Send data to your Pipeline's HTTP endpoint:
101101
curl "https://[PIPELINE-ID].pipelines.cloudflare.com/" -d '[{ ...JSON_DATA... }]'
102+
103+
To send data to your Pipeline from a Worker, add the following configuration to your config file:
104+
{
105+
"pipelines": [
106+
{
107+
"pipeline": "my-clickstream-pipeline",
108+
"binding": "PIPELINE"
109+
}
110+
]
111+
}
102112
```
103113
104114
## 3. Post data to your pipeline

src/content/docs/pipelines/index.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ Batch hints:
5656

5757
Send data to your Pipeline's HTTP endpoint:
5858
curl "https://0e00c5ff09b34d018152af98d06f5a1xvc.pipelines.cloudflare.com/" -d '[{ ...JSON_DATA... }]'
59+
60+
To send data to your Pipeline from a Worker, add the following configuration to your config file:
61+
{
62+
"pipelines": [
63+
{
64+
"pipeline": "my-clickstream-pipeline",
65+
"binding": "PIPELINE"
66+
}
67+
]
68+
}
5969
```
6070
6171
Refer to the [getting started guide](/pipelines/getting-started) to start building with pipelines.
@@ -71,6 +81,10 @@ While in beta, you will not be billed for Pipelines usage. You will be billed on
7181
Each pipeline generates a globally scalable HTTP endpoint, which supports authentication and CORS settings.
7282
</Feature>
7383
84+
<Feature header="Workers API" href="/pipelines/build-with-pipelines/workers-apis/">
85+
Send data to a pipeline directly from a Cloudflare Worker.
86+
</Feature>
87+
7488
<Feature header="Customize output settings" href="/pipelines/build-with-pipelines/output-settings">
7589
Define batch sizes and enable compression to generate output files that are efficient to query.
7690
</Feature>

0 commit comments

Comments
 (0)