Skip to content

Commit 7f40cc7

Browse files
authored
Merge branch 'production' into origin/tcerqueira/defense-in-depth-api-calls
2 parents 0adca5b + b32da38 commit 7f40cc7

File tree

1,494 files changed

+42784
-32355
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,494 files changed

+42784
-32355
lines changed

.github/CODEOWNERS

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,24 @@
4242

4343
# Browser Rendering API
4444

45-
/src/content/docs/browser-rendering/ @tanushree-sharma @mchenco @cloudflare/pcx-technical-writing @celso @meddulla
45+
/src/content/docs/browser-rendering/ @mchenco @cloudflare/pcx-technical-writing @celso @meddulla
4646

4747
# Cloudflare One
4848

4949
/src/content/docs/cloudflare-one/ @ranbel @cloudflare/pcx-technical-writing
5050
/src/content/docs/cloudflare-one/applications/ @kennyj42 @ranbel @cloudflare/pcx-technical-writing
5151
/src/content/docs/cloudflare-one/identity/ @kennyj42 @ranbel @cloudflare/pcx-technical-writing
5252
/src/content/docs/cloudflare-one/policies/access/ @kennyj42 @ranbel @cloudflare/pcx-technical-writing
53-
/src/content/docs/cloudflare-one/connections/connect-devices/ @kkrum @dh-cf @ranbel @cloudflare/pcx-technical-writing
54-
/src/content/docs/cloudflare-one/connections/connect-networks/ @janani-cr @ranbel @cloudflare/pcx-technical-writing
55-
/src/content/docs/cloudflare-one/insights/ @abelinkinbio @ranbel @cloudflare/pcx-technical-writing
53+
/src/content/docs/cloudflare-one/connections/connect-devices/ @kkrum @kokolocomotion1 @ranbel @cloudflare/pcx-technical-writing
54+
/src/content/docs/cloudflare-one/connections/connect-networks/ @ranbel @cloudflare/pcx-technical-writing
5655
/src/content/docs/cloudflare-one/applications/scan-apps/ @maxvp @cloudflare/pcx-technical-writing
5756
/src/content/docs/cloudflare-one/policies/gateway/ @maxvp @cloudflare/pcx-technical-writing
58-
/src/content/docs/cloudflare-one/policies/browser-isolation/ @maxvp @abelinkinbio @cloudflare/pcx-technical-writing
57+
/src/content/docs/cloudflare-one/policies/browser-isolation/ @maxvp @ranbel @cloudflare/pcx-technical-writing
5958
/src/content/docs/cloudflare-one/policies/data-loss-prevention/ @maxvp @cloudflare/pcx-technical-writing
59+
/src/content/docs/cloudflare-one/insights/dex/ @deadlypants1973 @cloudflare/pcx-technical-writing
6060
/src/content/docs/email-security/ @Maddy-Cloudflare @cloudflare/pcx-technical-writing
6161
/src/content/changelogs/access.yaml @ranbel @kennyj42 @cloudflare/pcx-technical-writing
62-
/src/content/changelogs/warp.yaml @ranbel @dh-cf @cloudflare/pcx-technical-writing
62+
/src/content/changelogs/warp.yaml @kokolocomotion1 @ranbel @cloudflare/pcx-technical-writing
6363

6464
# Consumer products
6565

@@ -121,21 +121,21 @@
121121
/src/content/docs/workers/ci-cd/ @irvinebroque @aninibread @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
122122
/src/content/docs/workers/runtime-apis/ @irvinebroque @jasnell @mikenomitch @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
123123
/src/content/docs/workers/runtime-apis/bindings/ @irvinebroque @mikenomitch @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
124-
/src/content/docs/workers/platform/ @irvinebroque @tanushree-sharma @GregBrimble @cloudflare/deploy-config @cloudflare/pcx-technical-writing
124+
/src/content/docs/workers/platform/ @irvinebroque @GregBrimble @cloudflare/deploy-config @cloudflare/pcx-technical-writing
125125
/src/content/docs/workers/configuration/compatibility-dates/ @irvinebroque @mikenomitch @GregBrimble @ToriLindsay @cloudflare/deploy-config @cloudflare/pcx-technical-writing
126126
/src/content/docs/workers/configuration/compatibility-flags/ @irvinebroque @mikenomitch @GregBrimble @ToriLindsay @cloudflare/deploy-config @cloudflare/pcx-technical-writing
127127

128128
/src/content/docs/workers/reference/migrate-to-module-workers/ @irvinebroque @GregBrimble @ToriLindsay @cloudflare/deploy-config @cloudflare/pcx-technical-writing
129129
/src/content/docs/workers/reference/security-model/ @irvinebroque @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
130130
/src/content/compatibility-flags/ @irvinebroque @mikenomitch @GregBrimble @cloudflare/pcx-technical-writing
131-
/src/content/docs/workers/wrangler/ @penalosa @petebacondarwin @dario-piotrowicz @irvinebroque @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
131+
/src/content/docs/workers/wrangler/ @cloudflare/wrangler @cloudflare/wrangler-friends @irvinebroque @ToriLindsay @cloudflare/pcx-technical-writing
132132
/src/content/docs/workers/frameworks/ @igorminar @dario-piotrowicz @jculvey @aninibread @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
133-
/src/content/docs/pages/framework-guides/ @igorminar @dario-piotrowicz @jculvey @aninibread @GregBrimble @tanushree-sharma @ToriLindsay @cloudflare/pcx-technical-writing
133+
/src/content/docs/pages/framework-guides/ @igorminar @dario-piotrowicz @jculvey @aninibread @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
134134
/src/content/docs/analytics/analytics-engine/ @irvinebroque @elithrar @cloudflare/pcx-technical-writing
135-
/cloudflare-for-platforms/workers-for-platforms/ @irvinebroque @tanushree-sharma @angelampcosta @GregBrimble @cloudflare/deploy-config @cloudflare/pcx-technical-writing
135+
/cloudflare-for-platforms/workers-for-platforms/ @irvinebroque @angelampcosta @GregBrimble @cloudflare/deploy-config @cloudflare/pcx-technical-writing
136136
/src/content/docs/workers/observability/ @irvinebroque @mikenomitch @rohinlohe @ToriLindsay @cloudflare/pcx-technical-writing
137-
/src/content/docs/workers/static-assets @irvinebroque @tanushree-sharma @GregBrimble @WalshyDev @ToriLindsay @cloudflare/deploy-config @cloudflare/pcx-technical-writing
138-
/src/content/docs/workflows/ @elithrar @celso @sidharthachatterjee @cloudflare/pcx-technical-writing
137+
/src/content/docs/workers/static-assets @irvinebroque @GregBrimble @WalshyDev @ToriLindsay @cloudflare/deploy-config @cloudflare/pcx-technical-writing
138+
/src/content/docs/workflows/ @ToriLindsay @elithrar @celso @sidharthachatterjee @cloudflare/pcx-technical-writing
139139

140140
# DDoS Protection
141141

@@ -203,7 +203,8 @@
203203

204204
# Support
205205

206-
/src/content/docs/support/ @shanecloudflare @zeinjaber @TracyCloudflare @ngayerie @cloudflare/pcx-technical-writing
206+
/src/content/docs/support/ @shanecloudflare @zeinjaber @TracyCloudflare @ngayerie @cloudflare/pcx-technical-writing @cloudflare/customer-support
207+
/src/assets/images/support/ @shanecloudflare @zeinjaber @TracyCloudflare @ngayerie @cloudflare/pcx-technical-writing @cloudflare/customer-support
207208

208209
# Turnstile
209210

CONTRIBUTING.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,46 @@ If we require more information to address your pull request, the `more-informati
3333
- [npm](https://nodejs.org/en/learn/getting-started/an-introduction-to-the-npm-package-manager#introduction-to-npm) is the recommended package manager that must be used in installing dependencies.
3434
- The generated `package-lock.json` file must be committed to git.
3535

36+
## Wrangler config
37+
38+
If you're adding a code snippet to the docs that represents a Wrangler config file (`wrangler.toml` or `wrangler.json`) make sure you wrap it with the `<WranglerConfig>` component, which ensure it's rendered as both JSON and TOML e.g.
39+
40+
````
41+
42+
import { WranglerConfig } from "~/components";
43+
44+
<WranglerConfig>
45+
46+
```toml
47+
# Top-level configuration
48+
name = "my-worker"
49+
main = "src/index.js"
50+
compatibility_date = "2022-07-12"
51+
52+
workers_dev = false
53+
route = { pattern = "example.org/*", zone_name = "example.org" }
54+
55+
kv_namespaces = [
56+
{ binding = "<MY_NAMESPACE>", id = "<KV_ID>" }
57+
]
58+
59+
[env.staging]
60+
name = "my-worker-staging"
61+
route = { pattern = "staging.example.org/*", zone_name = "example.org" }
62+
63+
kv_namespaces = [
64+
{ binding = "<MY_NAMESPACE>", id = "<STAGING_KV_ID>" }
65+
]
66+
```
67+
68+
</WranglerConfig>
69+
70+
````
3671

3772
## Workers Playground
73+
3874
If you are adding a code snippet to the docs that is:
75+
3976
1. A fully contained, valid Worker (i.e. it does not require external dependencies or specific bindings)
4077
2. Only JavaScript
4178

@@ -58,6 +95,7 @@ export default {
5895
};
5996
```
6097
````
98+
6199
would render as
62100

63101
<img width="870" alt="Screenshot 2024-02-20 at 14 29 22" src="https://github.com/cloudflare/cloudflare-docs/assets/28503158/56aa8016-b3b6-4d64-8213-b1a26f16534a">

astro.config.ts

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,15 @@ export default defineConfig({
174174
"./src/tooltips.css",
175175
],
176176
pagination: false,
177-
plugins: runLinkCheck
178-
? [
177+
plugins: [
178+
...(runLinkCheck
179+
? [
179180
starlightLinksValidator({
180181
errorOnInvalidHashes: false,
181182
errorOnLocalLinks: false,
182183
exclude: [
183184
"/api/",
184-
"/api/operations/**",
185+
"/api/**",
185186
"/changelog/",
186187
"/http/resources/**",
187188
"{props.*}",
@@ -196,21 +197,16 @@ export default defineConfig({
196197
"/workers-ai/models/**",
197198
],
198199
}),
199-
starlightDocSearch({
200-
appId: "8MU1G3QO9P",
201-
apiKey: "4edb0a6cef3338ff4bcfbc6b3d2db56b",
202-
indexName: "TEST - Re-dev docs",
203-
}),
204-
starlightImageZoom(),
205200
]
206-
: [
207-
starlightDocSearch({
208-
appId: "8MU1G3QO9P",
209-
apiKey: "4edb0a6cef3338ff4bcfbc6b3d2db56b",
210-
indexName: "TEST - Re-dev docs",
211-
}),
212-
starlightImageZoom(),
213-
],
201+
: []),
202+
starlightDocSearch({
203+
appId: "D32WIYFTUF",
204+
apiKey: "5cec275adc19dd3bc17617f7d9cf312a",
205+
indexName: "prod_devdocs",
206+
insights: true,
207+
}),
208+
starlightImageZoom(),
209+
],
214210
}),
215211
tailwind({
216212
applyBaseStyles: false,

bin/fetch-ai-models.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fetch("https://ai.cloudflare.com/api/models")
77
const fileName = model.name.split("/")[2];
88
fs.writeFileSync(
99
`./src/content/workers-ai-models/${fileName}.json`,
10-
JSON.stringify(model),
10+
JSON.stringify(model, null, 4),
1111
"utf-8",
1212
);
1313
});

functions/api/[[path]].ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

functions/api/redirects.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

functions/schema.ts

Lines changed: 0 additions & 93 deletions
This file was deleted.

functions/tsconfig.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)