Skip to content

Commit 5f0b831

Browse files
committed
minor updates
1 parent 59a6f9f commit 5f0b831

File tree

1 file changed

+11
-1
lines changed
  • src/content/docs/pipelines/tutorials/send-data-from-client

1 file changed

+11
-1
lines changed

src/content/docs/pipelines/tutorials/send-data-from-client/index.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,17 @@ You need to create a new pipeline and connect it to your R2 bucket.
204204
Create a new pipeline `clickstream-pipeline-client` using the [Wrangler CLI](/workers/wrangler/):
205205

206206
```sh
207-
npx wrangler pipelines create clickstream-pipeline-client --r2-bucket <BUCKET_NAME>
207+
npx wrangler pipelines create clickstream-pipeline-client --r2-bucket <BUCKET_NAME> --compression none
208208
```
209209

210210
Replace `<BUCKET_NAME>` with the name of your R2 bucket.
211211

212212
When you run the command, you will be prompted to authorize Cloudflare Workers Pipelines to create R2 API tokens on your behalf. These tokens are required by your Pipeline. Your Pipeline uses these tokens when loading data into your bucket. You can approve the request through the browser link which will open automatically.
213213

214+
:::note
215+
In the above command, you create a pipeline with the `--compression none` flag. This flag will prevent the pipeline from compressing the data before storing it in the R2 bucket. This is useful for testing purposes. In a production environment, you should use compression. We recommend keeping the default settings.
216+
:::
217+
214218
```output
215219
🌀 Authorizing R2 bucket "<BUCKET_NAME>"
216220
Opening a link in your default browser: https://oauth.pipelines.cloudflare.com/oauth/login?accountId=<ACCOUNT_ID>&bucketName=<BUCKET_NAME>&pipelineName=clickstream-pipeline-client
@@ -401,6 +405,12 @@ npx wrangler pipelines update clickstream-pipeline-client --cors-origins https:/
401405

402406
You can access the application at the deployed URL. When you click on the `View Details` or `Add to Cart` button, the clickstream data will be sent to your pipeline.
403407

408+
## 8. View the data in R2
409+
410+
You can view the data in the R2 bucket. If you are not signed in to the Cloudflare dashboard, sign in and navigate to the R2 overview page.
411+
412+
Open the bucket you configured for your pipeline in Step 3. You can see the clickstream data in the `Objects` column.
413+
404414
## Conclusion
405415

406416
You have successfully created a Pipeline and used it to send clickstream data from the client. Through this tutorial, you've gained hands-on experience in:

0 commit comments

Comments
 (0)