Skip to content

Commit 2928763

Browse files
pedrosousaRebeccaTamachiro
authored andcommitted
[Rules] Snippets update (#21553)
1 parent 075c9ad commit 2928763

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

src/content/docs/rules/snippets/index.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
---
22
pcx_content_type: concept
3-
title: Snippets
3+
title: Cloudflare Snippets
44
sidebar:
55
order: 4
66
group:
7-
badge:
8-
text: Beta
7+
label: Snippets
98
head:
109
- tag: title
11-
content: Cloudflare Snippets (beta)
10+
content: Cloudflare Snippets
1211
---
1312

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

16-
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.
15+
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.
1716

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

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

4847
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.
4948

49+
Currently, [Version Management](/version-management/) does not support Snippets.
50+
5051
## Limits
5152

5253
Cloudflare Snippets are designed for fast, lightweight edge logic. The following limits apply:

src/content/partials/version-management/product-limitations.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Version Management does not currently support or have limited support for the fo
5050

5151
<Details header="Cloudflare API">
5252

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

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

8181
</Details>
8282

83+
<Details header="Rules">
84+
85+
- Version Management does not currently support [Snippets](/rules/snippets/).
86+
87+
</Details>
88+
8389
<Details header="Security Insights">
8490

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

8995
<Details header="Terraform">
9096

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

94100
</Details>

src/content/plans/index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@
13181318
}
13191319
},
13201320
"snippets": {
1321-
"title": "Snippets (beta)",
1321+
"title": "Snippets",
13221322
"link": "/rules/snippets/",
13231323
"properties": {
13241324
"availability": {

0 commit comments

Comments
 (0)