Skip to content
Closed
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
5 changes: 3 additions & 2 deletions src/components/LearningPathCatalog.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { useEffect, useState, type ChangeEvent } from "react";
import Markdown from "react-markdown";
import type { CollectionEntry } from "astro:content";
import type { CollectionEntry, getEntries, reference } from "astro:content";
import type { IconifyIconBuildResult } from "@iconify/utils";
import { setSearchParams } from "~/util/url";
import { z } from "astro:schema";

type LearningPaths = CollectionEntry<"learning-paths">["data"][];
type Icons = Record<string, IconifyIconBuildResult>;

type Filters = {
products: string[];
products: string[],
groups: string[];
};

Expand Down
2 changes: 0 additions & 2 deletions src/content/docs/ai-gateway/tutorials/deploy-aig-worker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ tags:
- AI
- JavaScript
title: Deploy a Worker that connects to OpenAI via AI Gateway
products:
- Workers
description: Learn how to deploy a Worker that makes calls to OpenAI through AI Gateway
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
title: Querying Workers Metrics with GraphQL
pcx_content_type: example
products:
- Workers

products: [workers]
---

In this example, we are going to use the GraphQL Analytics API to query for Workers Metrics over a specified time period. We can query up to one month of data for dates up to three months ago.
Expand Down Expand Up @@ -127,4 +125,4 @@ https://api.cloudflare.com/client/v4/graphql \
#=> }
```

[^1]: Refer to [Configure an Analytics API token](/analytics/graphql-api/getting-started/authentication/api-token-auth/) for more information on configuration and permissions.
[^1]: Refer to [Configure an Analytics API token](/analytics/graphql-api/getting-started/authentication/api-token-auth/) for more information on configuration and permissions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
---
pcx_content_type: tutorial
title: Deploy a Browser Rendering Worker with Durable Objects
products:
- Workers
- Durable Objects
- R2
products: [workers, durable-objects, r2]
difficulty: Beginner
reviewed: 2023-09-28
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ pcx_content_type: example
summary: Browser Cache TTL
title: Browser Cache TTL
description: Browser Cache TTL
products:
- Cache Rules
---

import { Example, Render } from "~/components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ pcx_content_type: example
summary: Bypass Cache on Cookie
title: Bypass Cache on Cookie
description: Bypass Cache on Cookie
products:
- Cache Rules
products: [cache-rules]
---

import { Example, Render } from "~/components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ pcx_content_type: example
summary: Cache Deception Armor
title: Cache Deception Armor
description: Cache Deception Armor
products:
- Cache Rules
products: [cache-rules]
---

import { Example, Render } from "~/components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ pcx_content_type: example
summary: Cache by Device Type
title: Cache by Device Type
description: Cache by Device Type
products:
- Cache Rules
products: [cache-rules]
---

import { Example, Render } from "~/components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ pcx_content_type: example
summary: Cache Everything while ignoring query strings
title: Cache Everything while ignoring query strings
description: Cache Everything while ignoring query strings
products:
- Cache Rules
products: [cache-rules]
---

import { Example, Render } from "~/components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ pcx_content_type: example
summary: Cache Level (Cache Everything)
title: Cache Level (Cache Everything)
description: Cache Level (Cache Everything)
products:
- Cache Rules
products: [cache-rules]
---

import { Example, Render } from "~/components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ pcx_content_type: example
summary: Cache TTL by status code
title: Cache TTL by status code
description: Cache TTL by status code
products:
- Cache Rules
products: [cache-rules]
---

import { Example, Render } from "~/components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ pcx_content_type: example
summary: Custom Cache Key
title: Custom Cache Key
description: Custom Cache Key
products:
- Cache Rules
products: [cache-rules]
---

import { Example, Render } from "~/components";
Expand Down
21 changes: 10 additions & 11 deletions src/content/docs/cache/how-to/cache-rules/examples/edge-ttl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,25 @@ pcx_content_type: example
summary: Edge Cache TTL
title: Edge Cache TTL
description: Edge Cache TTL
products:
- Cache Rules
products: [cache-rules]
---

import { Example } from "~/components"
import { Example } from "~/components";

[Create a cache rule](/cache/how-to/cache-rules/create-dashboard/) to adjust edge cache TTL for caching resources on Cloudflare edge to one day, for any hostname containing `example.com`:

<Example>

* **When incoming requests match**: Custom filter expression
* Using the Expression Builder:<br/>
- **When incoming requests match**: Custom filter expression
- Using the Expression Builder:<br/>
`Hostname contains "example.com"`
* Using the Expression Editor:<br/>
- Using the Expression Editor:<br/>
`(http.host contains "example.com")`

* **Then**:
* **Cache eligibility**: Eligible for cache
* **Setting**: Edge TTL
* Ignore cache-control header and use this TTL
* **Input time-to-live (TTL)**: *1 day*
- **Then**:
- **Cache eligibility**: Eligible for cache
- **Setting**: Edge TTL
- Ignore cache-control header and use this TTL
- **Input time-to-live (TTL)**: _1 day_

</Example>
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ pcx_content_type: example
summary: Origin Cache Control
title: Origin Cache Control
description: Origin Cache Control
products:
- Cache Rules
products: [cache-rules]
---

import { Example } from "~/components"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ pcx_content_type: example
summary: Query String Sort
title: Query String Sort
description: Query String Sort
products:
- Cache Rules
products: [cache-rules]
---

import { Example } from "~/components"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ pcx_content_type: example
summary: Respect Strong ETags
title: Respect Strong ETags
description: Respect Strong ETags
products:
- Cache Rules
products: [cache-rules]
---

import { Example } from "~/components"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ category: 🔐 Access
difficulty: Intermediate
pcx_content_type: tutorial
title: Create custom headers for Cloudflare Access-protected origins with Workers
products:
- Workers
- Access
products: [workers, access]
tags:
- JavaScript
description: >-
Expand Down
3 changes: 1 addition & 2 deletions src/content/docs/cloudflare-one/tutorials/r2-logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ category: 🔐 Zero Trust
difficulty: Beginner
pcx_content_type: tutorial
title: Use Cloudflare R2 as a Zero Trust log destination
products:
- R2
products: [r2]
description: >-
This tutorial covers how to build a Cloudflare R2 bucket to store Zero Trust logs. It also shows how to connect the bucket to the Zero Trust Logpush service.
---
Expand Down
3 changes: 1 addition & 2 deletions src/content/docs/d1/tutorials/build-a-comments-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ reviewed: 2024-10-01
difficulty: Intermediate
pcx_content_type: tutorial
title: Build a Comments API
products:
- Workers
products: [workers]
tags:
- Hono
- JavaScript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ reviewed: 2024-03-21
difficulty: Intermediate
pcx_content_type: tutorial
title: Build a Staff Directory Application
products:
- Pages
products: [pages]
tags:
- Hono
- TypeScript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ reviewed: 2024-09-20
difficulty: Intermediate
pcx_content_type: tutorial
title: Build an API to access D1 using a proxy Worker
products:
- Workers
products: [workers]
tags:
- Hono
- TypeScript
Expand Down
3 changes: 1 addition & 2 deletions src/content/docs/d1/tutorials/d1-and-prisma-orm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ difficulty: Beginner
content_type: Tutorial
pcx_content_type: tutorial
title: Query D1 using Prisma ORM
products:
- Workers
products: [workers]
tags:
- TypeScript
- SQL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ reviewed: 2023-10-30
difficulty: Beginner
pcx_content_type: tutorial
title: Create a serverless, globally distributed time-series API with Timescale
products:
- Workers
products: [workers]
tags:
- PostgreSQL
- TypeScript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ pcx_content_type: tutorial
title: Use Pages as an origin for Load Balancing
reviewed: 2024-07-03
difficulty: Beginner
products:
- Pages
products: [pages]
sidebar:
order: 3
description: >-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ reviewed: 2024-07-22
difficulty: Intermediate
pcx_content_type: tutorial
title: Use R2 as static asset storage with Cloudflare Pages
products:
- R2
products: [r2]
tags:
- Hono
- JavaScript
Expand Down
3 changes: 1 addition & 2 deletions src/content/docs/pulumi/tutorial/hello-world.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
title: Deploy a Worker
pcx_content_type: tutorial
products:
- Workers
products: [workers]
reviewed: 2024-09-13
difficulty: Beginner
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ difficulty: Beginner
title: Handle rate limits of external APIs
summary: Example of how to use Queues to handle rate limits of external APIs.
pcx_content_type: tutorial
products:
- Workers
- Queues
products: [workers]
tags:
- TypeScript
sidebar:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ difficulty: Intermediate
title: Build a web crawler with Queues and Browser Rendering
summary: Example of how to use Queues and Browser Rendering to power a web crawler.
pcx_content_type: tutorial
products:
- Workers
- Browser Rendering
- KV
products: [workers, queues, browser-rendering]
tags:
- TypeScript
sidebar:
Expand Down
6 changes: 1 addition & 5 deletions src/content/docs/r2-sql/tutorials/end-to-end-pipeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
title: Build an end to end data pipeline
summary: Learn how to create an end-to-end data pipeline using Cloudflare Pipelines, R2 Data Catalog, and R2 SQL for real-time transaction analysis.
pcx_content_type: tutorial
products:
- R2
- R2 Data Catalog
- R2 SQL
- Pipelines
products: [pipelines, r2, r2-sql, r2-data-catalog]
description: >-
This tutorial demonstrates how to build a complete data pipeline using Cloudflare Pipelines, R2 Data Catalog, and R2 SQL.
---
Expand Down
5 changes: 1 addition & 4 deletions src/content/docs/r2/tutorials/summarize-pdf.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
---
title: Use event notification to summarize PDF files on upload
pcx_content_type: tutorial
products:
- Queues
- Workers
- Workers AI
products: [workers, queues, workers-ai]
difficulty: Intermediate
reviewed: 2024-10-11
tags:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
title: Log and store upload events in R2 with event notifications
pcx_content_type: tutorial
products:
- Queues
- Workers
products: [queues, workers]
difficulty: Beginner
reviewed: 2024-04-02
tags:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
title: Content Delivery Network (CDN) Reference Architecture
pcx_content_type: reference-architecture
products:
- Cache
- CDN
products: [cache]
sidebar:
order: 1
label: Content Delivery Network (CDN)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
---
title: Reference Architecture using Cloudflare SASE with Microsoft
pcx_content_type: reference-architecture
products:
- Access
- Gateway
- CASB
- Email Security
products: [access, casb, gateway, email-security-cf1]
sidebar:
order: 1
label: Cloudflare SASE with Microsoft
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
---
title: Enhancing security posture with SentinelOne and Cloudflare One
pcx_content_type: reference-architecture
products:
- Access
- Gateway
- Zero Trust WARP Client
products: [access, gateway, zero-trust-warp]
sidebar:
order: 1
label: Cloudflare SASE with SentinelOne
Expand Down
Loading
Loading