diff --git a/src/content/docs/workers/examples/103-early-hints.mdx b/src/content/docs/workers/examples/103-early-hints.mdx index 4753b6f032471e..7f9a0a9441721a 100644 --- a/src/content/docs/workers/examples/103-early-hints.mdx +++ b/src/content/docs/workers/examples/103-early-hints.mdx @@ -15,6 +15,12 @@ sidebar: description: Allow a client to request static assets while waiting for the HTML response. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/103-early-hints) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; `103` Early Hints is an HTTP status code designed to speed up content delivery. When enabled, Cloudflare can cache the `Link` headers marked with preload and/or preconnect from HTML pages and serve them in a `103` Early Hints response before reaching the origin server. Browsers can use these hints to fetch linked assets while waiting for the origin’s final response, dramatically improving page load speeds. diff --git a/src/content/docs/workers/examples/accessing-the-cloudflare-object.mdx b/src/content/docs/workers/examples/accessing-the-cloudflare-object.mdx index 2c3d21d8708548..2ba61019266784 100644 --- a/src/content/docs/workers/examples/accessing-the-cloudflare-object.mdx +++ b/src/content/docs/workers/examples/accessing-the-cloudflare-object.mdx @@ -16,6 +16,12 @@ description: Access custom Cloudflare properties and control how Cloudflare features are applied to every request. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/accessing-the-cloudflare-object) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/aggregate-requests.mdx b/src/content/docs/workers/examples/aggregate-requests.mdx index 4ca913c65272d2..6a71d850b4894b 100644 --- a/src/content/docs/workers/examples/aggregate-requests.mdx +++ b/src/content/docs/workers/examples/aggregate-requests.mdx @@ -14,6 +14,12 @@ description: Send two GET request to two urls and aggregates the responses into one response. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/aggregate-requests) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/alter-headers.mdx b/src/content/docs/workers/examples/alter-headers.mdx index f04da40ccc4944..62ae516d7027f1 100644 --- a/src/content/docs/workers/examples/alter-headers.mdx +++ b/src/content/docs/workers/examples/alter-headers.mdx @@ -19,6 +19,12 @@ description: Example of how to add, change, or delete headers sent in a request or returned in a response. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/alter-headers) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/cache-api.mdx b/src/content/docs/workers/examples/cache-api.mdx index 3082c2749c05ca..7629a02e36483d 100644 --- a/src/content/docs/workers/examples/cache-api.mdx +++ b/src/content/docs/workers/examples/cache-api.mdx @@ -15,6 +15,12 @@ sidebar: description: Use the Cache API to store responses in Cloudflare's cache. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/cache-api) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/cache-post-request.mdx b/src/content/docs/workers/examples/cache-post-request.mdx index 725722ea28d076..b10950487ed5d3 100644 --- a/src/content/docs/workers/examples/cache-post-request.mdx +++ b/src/content/docs/workers/examples/cache-post-request.mdx @@ -15,6 +15,12 @@ sidebar: description: Cache POST requests using the Cache API. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/cache-post-request) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/cache-tags.mdx b/src/content/docs/workers/examples/cache-tags.mdx index 0b0993baf4458c..833766df11b729 100644 --- a/src/content/docs/workers/examples/cache-tags.mdx +++ b/src/content/docs/workers/examples/cache-tags.mdx @@ -14,6 +14,12 @@ sidebar: description: Send Additional Cache Tags using Workers --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/cache-tags) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/cache-using-fetch.mdx b/src/content/docs/workers/examples/cache-using-fetch.mdx index e42e86d9106b6d..3c8efe2cc10471 100644 --- a/src/content/docs/workers/examples/cache-using-fetch.mdx +++ b/src/content/docs/workers/examples/cache-using-fetch.mdx @@ -18,6 +18,12 @@ description: Determine how to cache a resource by setting TTLs, custom cache keys, and cache headers in a fetch request. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/cache-using-fetch) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/conditional-response.mdx b/src/content/docs/workers/examples/conditional-response.mdx index 1295423b4e000c..bc53cd2bc5f837 100644 --- a/src/content/docs/workers/examples/conditional-response.mdx +++ b/src/content/docs/workers/examples/conditional-response.mdx @@ -16,6 +16,12 @@ description: Return a response based on the incoming request's URL, HTTP method, User Agent, IP address, ASN or device type. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/conditional-response) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/cors-header-proxy.mdx b/src/content/docs/workers/examples/cors-header-proxy.mdx index e25baa21e3c8f5..34f467d6e5db1b 100644 --- a/src/content/docs/workers/examples/cors-header-proxy.mdx +++ b/src/content/docs/workers/examples/cors-header-proxy.mdx @@ -16,6 +16,12 @@ sidebar: description: Add the necessary CORS headers to a third party API response. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/cors-header-proxy) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/country-code-redirect.mdx b/src/content/docs/workers/examples/country-code-redirect.mdx index fe6b7da2794c8f..2b0aead8ddebf5 100644 --- a/src/content/docs/workers/examples/country-code-redirect.mdx +++ b/src/content/docs/workers/examples/country-code-redirect.mdx @@ -17,6 +17,12 @@ sidebar: description: Redirect a response based on the country code in the header of a visitor. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/country-code-redirect) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/cron-trigger.mdx b/src/content/docs/workers/examples/cron-trigger.mdx index 99084729e2d035..2830216b5d45c2 100644 --- a/src/content/docs/workers/examples/cron-trigger.mdx +++ b/src/content/docs/workers/examples/cron-trigger.mdx @@ -13,6 +13,12 @@ sidebar: description: Set a Cron Trigger for your Worker. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/cron-trigger) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { Render, TabItem, Tabs, WranglerConfig } from "~/components"; diff --git a/src/content/docs/workers/examples/data-loss-prevention.mdx b/src/content/docs/workers/examples/data-loss-prevention.mdx index e7d6a3e1ac9e65..cf214ba7a08ff0 100644 --- a/src/content/docs/workers/examples/data-loss-prevention.mdx +++ b/src/content/docs/workers/examples/data-loss-prevention.mdx @@ -16,6 +16,12 @@ description: Protect sensitive data to prevent data loss, and send alerts to a webhooks server in the event of a data breach. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/data-loss-prevention) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/debugging-logs.mdx b/src/content/docs/workers/examples/debugging-logs.mdx index d706124f7ba122..378d9d8ab1631f 100644 --- a/src/content/docs/workers/examples/debugging-logs.mdx +++ b/src/content/docs/workers/examples/debugging-logs.mdx @@ -14,6 +14,12 @@ sidebar: description: Send debugging information in an errored response to a logging service. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/debugging-logs) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/extract-cookie-value.mdx b/src/content/docs/workers/examples/extract-cookie-value.mdx index e7ca1c827b34c3..f9fb740749825b 100644 --- a/src/content/docs/workers/examples/extract-cookie-value.mdx +++ b/src/content/docs/workers/examples/extract-cookie-value.mdx @@ -16,6 +16,12 @@ description: Given the cookie name, get the value of a cookie. You can also use cookies for A/B testing. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/extract-cookie-value) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/fetch-html.mdx b/src/content/docs/workers/examples/fetch-html.mdx index cabe56f40fecd5..daac9f38d31e82 100644 --- a/src/content/docs/workers/examples/fetch-html.mdx +++ b/src/content/docs/workers/examples/fetch-html.mdx @@ -17,6 +17,12 @@ description: Send a request to a remote server, read HTML from the response, and serve that HTML. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/fetch-html) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { Render, TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/fetch-json.mdx b/src/content/docs/workers/examples/fetch-json.mdx index fbfdd541d4f5e2..7545542204b80b 100644 --- a/src/content/docs/workers/examples/fetch-json.mdx +++ b/src/content/docs/workers/examples/fetch-json.mdx @@ -16,6 +16,12 @@ description: Send a GET request and read in JSON from the response. Use to fetch external data. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/fetch-json) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/geolocation-app-weather.mdx b/src/content/docs/workers/examples/geolocation-app-weather.mdx index ef190d1c3f5b68..88c34f287c9803 100644 --- a/src/content/docs/workers/examples/geolocation-app-weather.mdx +++ b/src/content/docs/workers/examples/geolocation-app-weather.mdx @@ -14,6 +14,12 @@ sidebar: description: Fetch weather data from an API using the user's geolocation data. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/geolocation-app-weather) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/geolocation-custom-styling.mdx b/src/content/docs/workers/examples/geolocation-custom-styling.mdx index 416cd92c9f4110..d88b6221d4ea98 100644 --- a/src/content/docs/workers/examples/geolocation-custom-styling.mdx +++ b/src/content/docs/workers/examples/geolocation-custom-styling.mdx @@ -13,6 +13,12 @@ sidebar: description: Personalize website styling based on localized user time. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/geolocation-custom-styling) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/geolocation-hello-world.mdx b/src/content/docs/workers/examples/geolocation-hello-world.mdx index 3813dcc67e2eac..7b74983668c5c6 100644 --- a/src/content/docs/workers/examples/geolocation-hello-world.mdx +++ b/src/content/docs/workers/examples/geolocation-hello-world.mdx @@ -16,6 +16,12 @@ sidebar: description: Get all geolocation data fields and display them in HTML. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/geolocation-hello-world) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/hot-link-protection.mdx b/src/content/docs/workers/examples/hot-link-protection.mdx index 215019617c479d..82f42918f8a020 100644 --- a/src/content/docs/workers/examples/hot-link-protection.mdx +++ b/src/content/docs/workers/examples/hot-link-protection.mdx @@ -17,6 +17,12 @@ description: Block other websites from linking to your content. This is useful for protecting images. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/hot-link-protection) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/images-workers.mdx b/src/content/docs/workers/examples/images-workers.mdx index 776068d2a938b9..ca0b05bc89cc5e 100644 --- a/src/content/docs/workers/examples/images-workers.mdx +++ b/src/content/docs/workers/examples/images-workers.mdx @@ -14,6 +14,12 @@ description: Set up custom domain for Images using a Worker or serve images using a prefix path and Cloudflare registered domain. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/images-workers) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; To serve images from a custom domain: diff --git a/src/content/docs/workers/examples/logging-headers.mdx b/src/content/docs/workers/examples/logging-headers.mdx index 04e84e90fd5a17..787f7f4d99f928 100644 --- a/src/content/docs/workers/examples/logging-headers.mdx +++ b/src/content/docs/workers/examples/logging-headers.mdx @@ -18,6 +18,12 @@ sidebar: description: Examine the contents of a Headers object by logging to console with a Map. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/logging-headers) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/modify-request-property.mdx b/src/content/docs/workers/examples/modify-request-property.mdx index 13a888c1296fdd..6a22a56106c34a 100644 --- a/src/content/docs/workers/examples/modify-request-property.mdx +++ b/src/content/docs/workers/examples/modify-request-property.mdx @@ -17,6 +17,12 @@ description: Create a modified request with edited properties based off of an incoming request. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/modify-request-property) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/modify-response.mdx b/src/content/docs/workers/examples/modify-response.mdx index 5ecc7de99f8021..50caabd0a42489 100644 --- a/src/content/docs/workers/examples/modify-response.mdx +++ b/src/content/docs/workers/examples/modify-response.mdx @@ -17,6 +17,12 @@ description: Fetch and modify response properties which are immutable by creating a copy first. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/modify-response) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/multiple-cron-triggers.mdx b/src/content/docs/workers/examples/multiple-cron-triggers.mdx index e2e9ed888bf405..ed3df87f3e98f6 100644 --- a/src/content/docs/workers/examples/multiple-cron-triggers.mdx +++ b/src/content/docs/workers/examples/multiple-cron-triggers.mdx @@ -13,6 +13,12 @@ sidebar: description: Set multiple Cron Triggers on three different schedules. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/multiple-cron-triggers) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/openai-sdk-streaming.mdx b/src/content/docs/workers/examples/openai-sdk-streaming.mdx index 76ae5af6accdfc..a84650debf1fe1 100644 --- a/src/content/docs/workers/examples/openai-sdk-streaming.mdx +++ b/src/content/docs/workers/examples/openai-sdk-streaming.mdx @@ -14,6 +14,12 @@ head: [] description: Use the OpenAI v4 SDK to stream responses from OpenAI. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/openai-sdk-streaming) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; In order to run this code, you must install the OpenAI SDK by running `npm i openai`. diff --git a/src/content/docs/workers/examples/post-json.mdx b/src/content/docs/workers/examples/post-json.mdx index f088344d09b1e4..65b97dfcedea1a 100644 --- a/src/content/docs/workers/examples/post-json.mdx +++ b/src/content/docs/workers/examples/post-json.mdx @@ -14,6 +14,12 @@ sidebar: description: Send a POST request with JSON data. Use to share data with external servers. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/post-json) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/protect-against-timing-attacks.mdx b/src/content/docs/workers/examples/protect-against-timing-attacks.mdx index 805f7240327472..8591e2776eb8e9 100644 --- a/src/content/docs/workers/examples/protect-against-timing-attacks.mdx +++ b/src/content/docs/workers/examples/protect-against-timing-attacks.mdx @@ -16,6 +16,12 @@ description: Protect against timing attacks by safely comparing values using `timingSafeEqual`. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/protect-against-timing-attacks) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; The [`crypto.subtle.timingSafeEqual`](/workers/runtime-apis/web-crypto/#timingsafeequal) function compares two values using a constant-time algorithm. The time taken is independent of the contents of the values. diff --git a/src/content/docs/workers/examples/read-post.mdx b/src/content/docs/workers/examples/read-post.mdx index 78742f50535721..d22734aef7d64d 100644 --- a/src/content/docs/workers/examples/read-post.mdx +++ b/src/content/docs/workers/examples/read-post.mdx @@ -17,6 +17,12 @@ description: Serve an HTML form, then read POST requests. Use also to read JSON or POST data from an incoming request. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/read-post) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/redirect.mdx b/src/content/docs/workers/examples/redirect.mdx index d217581ccc2243..079a897e56609d 100644 --- a/src/content/docs/workers/examples/redirect.mdx +++ b/src/content/docs/workers/examples/redirect.mdx @@ -20,6 +20,12 @@ description: Redirect requests from one URL to another or from one set of URLs to another set. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/redirect) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { Render, TabItem, Tabs } from "~/components"; ## Redirect all requests to one URL diff --git a/src/content/docs/workers/examples/respond-with-another-site.mdx b/src/content/docs/workers/examples/respond-with-another-site.mdx index 432155e08ddc8c..de8df3965a4f2f 100644 --- a/src/content/docs/workers/examples/respond-with-another-site.mdx +++ b/src/content/docs/workers/examples/respond-with-another-site.mdx @@ -19,6 +19,12 @@ description: Respond to the Worker request with the response from another website (example.com in this example). --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/respond-with-another-site) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { Render, TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/return-html.mdx b/src/content/docs/workers/examples/return-html.mdx index 09a0caa5dc3c08..c0f3a832cd673f 100644 --- a/src/content/docs/workers/examples/return-html.mdx +++ b/src/content/docs/workers/examples/return-html.mdx @@ -18,6 +18,12 @@ sidebar: description: Deliver an HTML page from an HTML string directly inside the Worker script. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/return-html) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { Render, TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/return-json.mdx b/src/content/docs/workers/examples/return-json.mdx index 2c791d520c67bd..4d2a744d802492 100644 --- a/src/content/docs/workers/examples/return-json.mdx +++ b/src/content/docs/workers/examples/return-json.mdx @@ -21,6 +21,12 @@ description: Return JSON directly from a Worker script, useful for building APIs and middleware. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/return-json) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { Render, TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/rewrite-links.mdx b/src/content/docs/workers/examples/rewrite-links.mdx index ceccb897d533a2..0748c650611d82 100644 --- a/src/content/docs/workers/examples/rewrite-links.mdx +++ b/src/content/docs/workers/examples/rewrite-links.mdx @@ -14,6 +14,12 @@ description: Rewrite URL links in HTML using the HTMLRewriter. This is useful for JAMstack websites. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/rewrite-links) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/security-headers.mdx b/src/content/docs/workers/examples/security-headers.mdx index 9b0a42dad691d6..2de1b4ece61753 100644 --- a/src/content/docs/workers/examples/security-headers.mdx +++ b/src/content/docs/workers/examples/security-headers.mdx @@ -20,6 +20,12 @@ description: Set common security headers (X-XSS-Protection, X-Frame-Options, Strict-Transport-Security, Content-Security-Policy). --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/security-headers) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; diff --git a/src/content/docs/workers/examples/signing-requests.mdx b/src/content/docs/workers/examples/signing-requests.mdx index ebbd9b5c57d68d..021eaee48596cd 100644 --- a/src/content/docs/workers/examples/signing-requests.mdx +++ b/src/content/docs/workers/examples/signing-requests.mdx @@ -18,6 +18,12 @@ sidebar: description: Verify a signed request using the HMAC and SHA-256 algorithms or return a 403. --- +If you want to get started quickly, click on the button below. + +[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/main/workers/signing-requests) + +This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. + import { TabItem, Tabs } from "~/components"; :::note