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
11 changes: 6 additions & 5 deletions src/content/docs/rules/snippets/index.mdx
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
---
pcx_content_type: concept
title: Snippets
title: Cloudflare Snippets
sidebar:
order: 4
group:
badge:
text: Beta
label: Snippets
head:
- tag: title
content: Cloudflare Snippets (beta)
content: Cloudflare Snippets
---

import { FeatureTable, GlossaryTooltip, Render, Card } from "~/components";

Cloudflare Snippets (beta) provide a powerful and flexible way to customize the behavior of your website or application using short pieces of JavaScript code. With Snippets, you can modify HTTP response headers, implement <GlossaryTooltip term="JSON web token (JWT)" prepend="JSON web token (JWT) is ">JWT</GlossaryTooltip> validation, perform complex <GlossaryTooltip term="redirect">redirects</GlossaryTooltip>, and much more.
Cloudflare Snippets provide a powerful and flexible way to customize the behavior of your website or application using short pieces of JavaScript code. With Snippets, you can modify HTTP response headers, implement <GlossaryTooltip term="JSON web token (JWT)" prepend="JSON web token (JWT) is ">JWT</GlossaryTooltip> validation, perform complex <GlossaryTooltip term="redirect">redirects</GlossaryTooltip>, and much more.

For code samples addressing common use cases, please refer to the [Examples](/rules/snippets/examples/) section.

Expand Down Expand Up @@ -47,6 +46,8 @@ If you have used the Cloudflare API to create a code snippet that is not associa

Each <GlossaryTooltip term="Snippets subrequest" prepend="A subrequest is ">subrequest</GlossaryTooltip> in a redirect chain counts against the subrequest limit. This means that if a subrequest was redirected it would count as two subrequests. To avoid issues, ensure that you make a subrequest to the end location of the redirect chain.

Currently, [Version Management](/version-management/) does not support Snippets.

## Limits

Cloudflare Snippets are designed for fast, lightweight edge logic. The following limits apply:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Version Management does not currently support or have limited support for the fo

<Details header="Cloudflare API">

- Zone Version Management does not currently expose a public [API](/api/).
- Version Management does not currently expose a public [API](/api/).
- Customers can only use Version Management through the [Cloudflare dashboard](https://dash.cloudflare.com/).

</Details>
Expand Down Expand Up @@ -80,6 +80,12 @@ Version Management does not currently support or have limited support for the fo

</Details>

<Details header="Rules">

- Version Management does not currently support [Snippets](/rules/snippets/).

</Details>

<Details header="Security Insights">

- [Security Insights](/security-center/security-insights/) are not shown when Zone Versioning is enabled and the first version is deployed to production.
Expand All @@ -88,7 +94,7 @@ Version Management does not currently support or have limited support for the fo

<Details header="Terraform">

- Zone Version Management does not currently support [Terraform](/terraform/).
- Version Management does not currently support [Terraform](/terraform/).
- Customers should either use Terraform or Version Management.

</Details>
Expand Down
2 changes: 1 addition & 1 deletion src/content/plans/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@
}
},
"snippets": {
"title": "Snippets (beta)",
"title": "Snippets",
"link": "/rules/snippets/",
"properties": {
"availability": {
Expand Down