mirror of
https://github.com/cloudflare/cloudflare-docs.git
synced 2026-01-11 20:06:58 +00:00
[Frontmatter] Updating languages to tags in frontmatter. (#24306)
* Updating languages to tags in frontmatter. * Apply suggestions from code review * Round 2 * Apply suggestions from code review * Adding label for Java * Adding .NET into list of tags * Adding Prisma ORM as a tag * Removing deprecated "languages" filter * frontmatter and schema cleanup * tweak --------- Co-authored-by: kodster28 <kody@cloudflare.com>
This commit is contained in:
parent
75aa789505
commit
8b8c7dcda5
125 changed files with 69 additions and 142 deletions
|
|
@ -4,11 +4,10 @@ difficulty: Beginner
|
|||
pcx_content_type: tutorial
|
||||
tags:
|
||||
- AI
|
||||
- JavaScript
|
||||
title: Deploy a Worker that connects to OpenAI via AI Gateway
|
||||
products:
|
||||
- Workers
|
||||
languages:
|
||||
- JavaScript
|
||||
description: Learn how to deploy a Worker that makes calls to OpenAI through AI Gateway
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ products:
|
|||
- R2
|
||||
difficulty: Beginner
|
||||
updated: 2023-09-28
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
sidebar:
|
||||
order: 2
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ title: Create custom headers for Cloudflare Access-protected origins with Worker
|
|||
products:
|
||||
- Workers
|
||||
- Access
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ updated: 2023-06-09
|
|||
category: 🔐 Access
|
||||
pcx_content_type: tutorial
|
||||
title: Validate the Access token with FastAPI
|
||||
languages:
|
||||
tags:
|
||||
- Python
|
||||
|
||||
---
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
type: example
|
||||
summary: Learn how to query D1 from a Python Worker
|
||||
languages:
|
||||
tags:
|
||||
- Python
|
||||
pcx_content_type: example
|
||||
title: Query D1 from Python Workers
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ products:
|
|||
- Workers
|
||||
tags:
|
||||
- Hono
|
||||
languages:
|
||||
- JavaScript
|
||||
- SQL
|
||||
---
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ products:
|
|||
- Pages
|
||||
tags:
|
||||
- Hono
|
||||
languages:
|
||||
- TypeScript
|
||||
- SQL
|
||||
description: Build a staff directory using D1. Users access employee info; admins add new employees within the app.
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ products:
|
|||
- Workers
|
||||
tags:
|
||||
- Hono
|
||||
languages:
|
||||
- TypeScript
|
||||
- SQL
|
||||
---
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ pcx_content_type: tutorial
|
|||
title: Query D1 using Prisma ORM
|
||||
products:
|
||||
- Workers
|
||||
languages:
|
||||
tags:
|
||||
- TypeScript
|
||||
- SQL
|
||||
---
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ difficulty: Beginner
|
|||
content_type: Tutorial
|
||||
pcx_content_type: tutorial
|
||||
title: Bulk import to D1 using REST API
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- SQL
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ difficulty: Beginner
|
|||
content_type: Tutorial
|
||||
pcx_content_type: tutorial
|
||||
title: Using D1 Read Replication for your e-commerce website
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- SQL
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ products:
|
|||
- Workers
|
||||
tags:
|
||||
- CMS
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
spotlight:
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@ products:
|
|||
- Workers
|
||||
- Vectorize
|
||||
- Workers AI
|
||||
languages:
|
||||
- TypeScript
|
||||
spotlight:
|
||||
author: Hidetaka Okamoto
|
||||
author_bio_link: https://www.linkedin.com/in/hideokamoto/
|
||||
|
|
@ -17,6 +15,7 @@ tags:
|
|||
- AI
|
||||
- Hono
|
||||
- Stripe
|
||||
- TypeScript
|
||||
sidebar:
|
||||
order: 2
|
||||
description: Create APIs for related product searches and recommendations using Workers AI and Stripe.
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ products:
|
|||
- R2
|
||||
- D1
|
||||
- Workers
|
||||
languages:
|
||||
tags:
|
||||
- TypeScript
|
||||
- SQL
|
||||
spotlight:
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ title: Setup Fullstack Authentication with Next.js, Auth.js, and Cloudflare D1
|
|||
products:
|
||||
- Workers
|
||||
- D1
|
||||
languages:
|
||||
tags:
|
||||
- TypeScript
|
||||
spotlight:
|
||||
author: Mackenly Jones
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ products:
|
|||
tags:
|
||||
- Forms
|
||||
- Astro
|
||||
languages:
|
||||
- TypeScript
|
||||
spotlight:
|
||||
author: Cody Walsh
|
||||
|
|
|
|||
|
|
@ -3,9 +3,7 @@ updated: 2024-09-24
|
|||
difficulty: Intermediate
|
||||
pcx_content_type: tutorial
|
||||
title: Build a seat booking app with SQLite in Durable Objects
|
||||
products:
|
||||
- Durable Objects
|
||||
languages:
|
||||
tags:
|
||||
- TypeScript
|
||||
- SQL
|
||||
---
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ products:
|
|||
- Workers
|
||||
tags:
|
||||
- PostgreSQL
|
||||
languages:
|
||||
- TypeScript
|
||||
- SQL
|
||||
---
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: GraphQL Analytics
|
||||
pcx_content_type: tutorial
|
||||
languages:
|
||||
tags:
|
||||
- GraphQL
|
||||
sidebar:
|
||||
order: 1
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
title: GraphQL Analytics
|
||||
pcx_content_type: tutorial
|
||||
updated: 2023-01-04
|
||||
languages:
|
||||
tags:
|
||||
- GraphQL
|
||||
sidebar:
|
||||
order: 2
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ updated: 2022-07-26
|
|||
difficulty: Beginner
|
||||
pcx_content_type: tutorial
|
||||
title: Migrating from Netlify to Pages
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
sidebar:
|
||||
hidden: true
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ updated: 2021-07-27
|
|||
difficulty: Beginner
|
||||
pcx_content_type: tutorial
|
||||
title: Migrating a Jekyll-based site from GitHub Pages
|
||||
languages:
|
||||
tags:
|
||||
- Ruby
|
||||
sidebar:
|
||||
hidden: true
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ pcx_content_type: tutorial
|
|||
title: Add a React form with Formspree
|
||||
tags:
|
||||
- Forms
|
||||
languages:
|
||||
- JavaScript
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ title: Build a blog using Nuxt.js and Sanity.io on Cloudflare Pages
|
|||
tags:
|
||||
- Nuxt
|
||||
- Vue
|
||||
languages:
|
||||
- JavaScript
|
||||
description: Build a blog application using Nuxt.js and Sanity.io and deploy it on Cloudflare Pages.
|
||||
---
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ updated: 2024-10-01
|
|||
pcx_content_type: tutorial
|
||||
difficulty: Intermediate
|
||||
title: Build an API for your front end using Pages Functions
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ pcx_content_type: tutorial
|
|||
title: Create a HTML form
|
||||
tags:
|
||||
- Forms
|
||||
languages:
|
||||
- JavaScript
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ updated: 2024-05-06
|
|||
difficulty: Intermediate
|
||||
pcx_content_type: tutorial
|
||||
title: Localize a website with HTMLRewriter
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ products:
|
|||
- R2
|
||||
tags:
|
||||
- Hono
|
||||
languages:
|
||||
- JavaScript
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ products:
|
|||
- Workers
|
||||
tags:
|
||||
- MotherDuck
|
||||
languages:
|
||||
- SQL
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ products:
|
|||
- Workers
|
||||
tags:
|
||||
- MotherDuck
|
||||
languages:
|
||||
- SQL
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: Add a site
|
||||
pcx_content_type: tutorial
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ products:
|
|||
- Workers
|
||||
updated: 2024-09-13
|
||||
difficulty: Beginner
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ pcx_content_type: tutorial
|
|||
products:
|
||||
- Workers
|
||||
- Queues
|
||||
languages:
|
||||
tags:
|
||||
- TypeScript
|
||||
sidebar:
|
||||
order: 1002
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ products:
|
|||
- Workers
|
||||
- Browser Rendering
|
||||
- KV
|
||||
languages:
|
||||
tags:
|
||||
- TypeScript
|
||||
sidebar:
|
||||
order: 1002
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ products:
|
|||
- Workers AI
|
||||
difficulty: Intermediate
|
||||
updated: 2024-10-11
|
||||
languages:
|
||||
tags:
|
||||
- TypeScript
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ products:
|
|||
- Workers
|
||||
difficulty: Beginner
|
||||
updated: 2024-04-02
|
||||
languages:
|
||||
tags:
|
||||
- TypeScript
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import { ResourcesBySelector } from "~/components";
|
|||
<ResourcesBySelector
|
||||
directory="workers/examples/"
|
||||
types={["example"]}
|
||||
filterables={["languages", "tags"]}
|
||||
filterables={["tags"]}
|
||||
/>
|
||||
```
|
||||
|
||||
|
|
@ -28,7 +28,7 @@ import { ResourcesBySelector } from "~/components";
|
|||
|
||||
- `filterables` <Type text="string[]" />
|
||||
|
||||
An array of frontmatter properties to show in the frontend filter dropdown. For example, `filterables={["languages", "tags"]}` will allow users to filter based on each pages `languages` and `tags` frontmatter.
|
||||
An array of frontmatter properties to show in the frontend filter dropdown. For example, `filterables={["tags"]}` will allow users to filter based on each pages' `tags` frontmatter.
|
||||
|
||||
- `types` <Type text="string[]" />
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ type: example
|
|||
summary: You can use the templates below for a demo application in Workers where
|
||||
product details are shown, but pricing information is not revealed until the
|
||||
Turnstile widget is solved.
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
preview:
|
||||
- true
|
||||
|
|
|
|||
|
|
@ -3,10 +3,9 @@ title: Conditionally enforce Turnstile
|
|||
pcx_content_type: tutorial
|
||||
updated: 2025-04-01
|
||||
difficulty: Intermediate
|
||||
languages:
|
||||
- TypeScript
|
||||
tags:
|
||||
- Node.js
|
||||
- TypeScript
|
||||
sidebar:
|
||||
order: 6
|
||||
---
|
||||
|
|
|
|||
|
|
@ -3,10 +3,9 @@ title: Exclude Turnstile from E2E tests
|
|||
pcx_content_type: tutorial
|
||||
updated: 2025-01-24
|
||||
difficulty: Intermediate
|
||||
languages:
|
||||
- TypeScript
|
||||
tags:
|
||||
- Node.js
|
||||
- TypeScript
|
||||
sidebar:
|
||||
order: 6
|
||||
---
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@ title: Implement Turnstile using implicit and explicit rendering
|
|||
pcx_content_type: tutorial
|
||||
updated: 2024-09-16
|
||||
difficulty: Beginner
|
||||
languages:
|
||||
- JavaScript
|
||||
tags:
|
||||
- JavaScript
|
||||
- Node.js
|
||||
sidebar:
|
||||
order: 4
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ difficulty: Beginner
|
|||
products:
|
||||
- Web Application Firewall
|
||||
- Bot Management
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
sidebar:
|
||||
order: 3
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@ title: Protect your forms
|
|||
pcx_content_type: tutorial
|
||||
updated: 2025-05-30
|
||||
difficulty: Beginner
|
||||
languages:
|
||||
- JavaScript
|
||||
tags:
|
||||
- JavaScript
|
||||
- Node.js
|
||||
sidebar:
|
||||
order: 2
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@ title: Protect payment forms from malicious bots using Turnstile
|
|||
pcx_content_type: tutorial
|
||||
updated: 2024-12-17
|
||||
difficulty: Beginner
|
||||
languages:
|
||||
- JavaScript
|
||||
tags:
|
||||
- JavaScript
|
||||
- Node.js
|
||||
- Hono
|
||||
- Stripe
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ products:
|
|||
tags:
|
||||
- AI
|
||||
- Hono
|
||||
languages:
|
||||
- JavaScript
|
||||
sidebar:
|
||||
order: 2
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ products:
|
|||
tags:
|
||||
- AI
|
||||
- Nuxt
|
||||
languages:
|
||||
- TypeScript
|
||||
description: Explore how you can use AI models to transcribe audio recordings and post process the transcriptions.
|
||||
spotlight:
|
||||
|
|
|
|||
|
|
@ -12,9 +12,8 @@ spotlight:
|
|||
author: Vasyl
|
||||
author_bio_link: https://github.com/berezovyy
|
||||
author_bio_source: GitHub
|
||||
languages:
|
||||
- TypeScript
|
||||
tags:
|
||||
- TypeScript
|
||||
- AI
|
||||
description: Learn how to build an AI-powered interview practice tool that provides real-time feedback to help improve interview skills.
|
||||
---
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ pcx_content_type: tutorial
|
|||
title: Explore Code Generation Using DeepSeek Coder Models
|
||||
tags:
|
||||
- AI
|
||||
languages:
|
||||
- Python
|
||||
sidebar:
|
||||
order: 4
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ pcx_content_type: tutorial
|
|||
title: Explore Workers AI Models Using a Jupyter Notebook
|
||||
tags:
|
||||
- AI
|
||||
languages:
|
||||
- Python
|
||||
head: []
|
||||
description: This Jupyter notebook explores various models (including Whisper, Distilled BERT, LLaVA, and Meta Llama 3) using Python and the
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ pcx_content_type: tutorial
|
|||
title: Choose the Right Text Generation Model
|
||||
tags:
|
||||
- AI
|
||||
languages:
|
||||
- Python
|
||||
sidebar:
|
||||
order: 1
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ products:
|
|||
- Workers
|
||||
tags:
|
||||
- AI
|
||||
languages:
|
||||
- Typescript
|
||||
- TypeScript
|
||||
|
||||
prev: true
|
||||
next: true
|
||||
---
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ products:
|
|||
- Workers
|
||||
tags:
|
||||
- AI
|
||||
languages:
|
||||
- Typescript
|
||||
- TypeScript
|
||||
|
||||
next: true
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@ products:
|
|||
- Workers
|
||||
tags:
|
||||
- AI
|
||||
languages:
|
||||
- Typescript
|
||||
- TypeScript
|
||||
prev: true
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ products:
|
|||
- Workers
|
||||
tags:
|
||||
- AI
|
||||
languages:
|
||||
- Typescript
|
||||
- TypeScript
|
||||
|
||||
description: Learn how to build an image generator using Workers AI.
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ products:
|
|||
- Workers AI
|
||||
tags:
|
||||
- AI
|
||||
languages:
|
||||
- JavaScript
|
||||
sidebar:
|
||||
order: 2
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ summary: Allow a client to request static assets while waiting for the HTML resp
|
|||
tags:
|
||||
- Middleware
|
||||
- Headers
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ type: example
|
|||
summary: Set up an A/B test by controlling what response is served based on
|
||||
cookies. This version supports passing the request through to test and control
|
||||
on the origin, bypassing random assignment.
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
type: example
|
||||
summary: Access custom Cloudflare properties and control how Cloudflare features
|
||||
are applied to every request.
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
type: example
|
||||
summary: Send two GET request to two urls and aggregates the responses into one
|
||||
response.
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ summary: Example of how to add, change, or delete headers sent in a request or
|
|||
tags:
|
||||
- Headers
|
||||
- Middleware
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ summary: Allow or deny a request based on a known pre-shared key in a header.
|
|||
tags:
|
||||
- Authentication
|
||||
- WebCrypto
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ summary: Shows how to restrict access using the HTTP Basic schema.
|
|||
tags:
|
||||
- Security
|
||||
- Authentication
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Rust
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ summary: Inspects the incoming request's TLS version and blocks if under TLSv1.2
|
|||
tags:
|
||||
- Security
|
||||
- Middleware
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ type: example
|
|||
summary: Resolve requests to your domain to a set of proxy third-party origin URLs.
|
||||
tags:
|
||||
- Middleware
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ summary: Redirect requests to certain URLs based on a mapped object to the
|
|||
tags:
|
||||
- Middleware
|
||||
- Redirects
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ summary: Use the Cache API to store responses in Cloudflare's cache.
|
|||
tags:
|
||||
- Middleware
|
||||
- Caching
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ summary: Cache POST requests using the Cache API.
|
|||
tags:
|
||||
- Middleware
|
||||
- Caching
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ type: example
|
|||
summary: Send Additional Cache Tags using Workers
|
||||
tags:
|
||||
- Caching
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ summary: Determine how to cache a resource by setting TTLs, custom cache keys,
|
|||
tags:
|
||||
- Caching
|
||||
- Middleware
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ summary: Return a response based on the incoming request's URL, HTTP method,
|
|||
User Agent, IP address, ASN or device type.
|
||||
tags:
|
||||
- Middleware
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ summary: Add the necessary CORS headers to a third party API response.
|
|||
tags:
|
||||
- Security
|
||||
- Headers
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ summary: Redirect a response based on the country code in the header of a visito
|
|||
tags:
|
||||
- Redirects
|
||||
- Geolocation
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ type: example
|
|||
summary: Set a Cron Trigger for your Worker.
|
||||
tags:
|
||||
- Middleware
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
pcx_content_type: example
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ summary: Protect sensitive data to prevent data loss, and send alerts to a
|
|||
webhooks server in the event of a data breach.
|
||||
tags:
|
||||
- Security
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ type: example
|
|||
summary: Send debugging information in an errored response to a logging service.
|
||||
tags:
|
||||
- Debugging
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ summary: Given the cookie name, get the value of a cookie. You can also use
|
|||
cookies for A/B testing.
|
||||
tags:
|
||||
- Headers
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
type: example
|
||||
summary: Send a request to a remote server, read HTML from the response, and
|
||||
serve that HTML.
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ pcx_content_type: example
|
|||
title: Fetch JSON
|
||||
tags:
|
||||
- JSON
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ type: example
|
|||
summary: Fetch weather data from an API using the user's geolocation data.
|
||||
tags:
|
||||
- Geolocation
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ type: example
|
|||
summary: Personalize website styling based on localized user time.
|
||||
tags:
|
||||
- Geolocation
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
pcx_content_type: example
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ type: example
|
|||
summary: Get all geolocation data fields and display them in HTML.
|
||||
tags:
|
||||
- Geolocation
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ summary: Block other websites from linking to your content. This is useful for
|
|||
tags:
|
||||
- Security
|
||||
- Headers
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
type: example
|
||||
summary: Set up custom domain for Images using a Worker or serve images using a
|
||||
prefix path and Cloudflare registered domain.
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ import { GlossaryTooltip, ListExamples } from "~/components";
|
|||
|
||||
Explore the following <GlossaryTooltip term="code example">examples</GlossaryTooltip> for Workers.
|
||||
|
||||
<ListExamples directory="workers/examples/" filters={["languages", "tags"]} />
|
||||
<ListExamples directory="workers/examples/" filters={["tags"]} />
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ summary: Examine the contents of a Headers object by logging to console with a M
|
|||
tags:
|
||||
- Debugging
|
||||
- Headers
|
||||
languages:
|
||||
- JavaScript
|
||||
- Rust
|
||||
- TypeScript
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ summary: Create a modified request with edited properties based off of an
|
|||
tags:
|
||||
- Middleware
|
||||
- Headers
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ summary: Fetch and modify response properties which are immutable by creating a
|
|||
tags:
|
||||
- Middleware
|
||||
- Headers
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ type: example
|
|||
summary: Set multiple Cron Triggers on three different schedules.
|
||||
tags:
|
||||
- Middleware
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
pcx_content_type: example
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ type: example
|
|||
summary: Use the OpenAI v4 SDK to stream responses from OpenAI.
|
||||
tags:
|
||||
- AI
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
pcx_content_type: example
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ type: example
|
|||
summary: Send a POST request with JSON data. Use to share data with external servers.
|
||||
tags:
|
||||
- JSON
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ summary: Protect against timing attacks by safely comparing values using
|
|||
tags:
|
||||
- Security
|
||||
- WebCrypto
|
||||
languages:
|
||||
- TypeScript
|
||||
- Python
|
||||
pcx_content_type: example
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ summary: Serve an HTML form, then read POST requests. Use also to read JSON or
|
|||
POST data from an incoming request.
|
||||
tags:
|
||||
- JSON
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ summary: Redirect requests from one URL to another or from one set of URLs to
|
|||
tags:
|
||||
- Middleware
|
||||
- Redirects
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ summary: Respond to the Worker request with the response from another website
|
|||
demo: https://respond-with-another-site.workers-sites-examples.workers.dev
|
||||
tags:
|
||||
- Middleware
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
type: example
|
||||
summary: Deliver an HTML page from an HTML string directly inside the Worker script.
|
||||
demo: https://returning-html.workers-sites-examples.workers.dev
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ summary: Return JSON directly from a Worker script, useful for building APIs and
|
|||
demo: https://returning-json.workers-sites-examples.workers.dev
|
||||
tags:
|
||||
- JSON
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
type: example
|
||||
summary: Rewrite URL links in HTML using the HTMLRewriter. This is useful for
|
||||
JAMstack websites.
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ summary: Set common security headers (X-XSS-Protection, X-Frame-Options,
|
|||
tags:
|
||||
- Security
|
||||
- Middleware
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ summary: Verify a signed request using the HMAC and SHA-256 algorithms or return
|
|||
tags:
|
||||
- Security
|
||||
- WebCrypto
|
||||
languages:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
type: example
|
||||
summary: Inject [Turnstile](/turnstile/) implicitly into HTML elements using the
|
||||
HTMLRewriter runtime API.
|
||||
languages:
|
||||
tags:
|
||||
- JavaScript
|
||||
- TypeScript
|
||||
- Python
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue