Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Bulk redirects

Implements a Cloudflare Worker that performs URL redirection by mapping incoming request URLs against a predefined object of destination paths.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Bulk redirects

Implements a Cloudflare Worker that performs URL redirection by mapping incoming request URLs against a predefined object of destination paths.

When To Use

Use when you need to implement a high-performance URL redirection service using Cloudflare Workers and a mapping object.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-examples-bulk-redirects-workflow-guide.mdA Cloudflare Workers example using the Hono framework to implement bulk URL redirects based on a mapped object.Questions about a Cloudflare Workers example using the Hono framework to implement bulk URL redirects based on a mapped object.
examples/workers-examples-bulk-redirects-cloudflare-workers-bulk-redirects-javasc.textA JavaScript implementation of a Cloudflare Worker that uses a Map to perform bulk URL redirects based on incoming request paths.Exact payloads, commands, or snippets shown in A JavaScript implementation of a Cloudflare Worker that uses a Map to perform bulk URL redirects based on incoming re...
examples/workers-examples-bulk-redirects-cloudflare-workers-bulk-redirects-javasc-2.textA JavaScript implementation of a Cloudflare Worker that uses a Map to perform bulk URL redirects.Exact payloads, commands, or snippets shown in A JavaScript implementation of a Cloudflare Worker that uses a Map to perform bulk URL redirects.
examples/workers-examples-bulk-redirects-cloudflare-workers-bulk-redirects-python.textA Python implementation of a Cloudflare Worker that uses a dictionary to map multiple URL paths to external destinations for bulk redirection.Exact payloads, commands, or snippets shown in A Python implementation of a Cloudflare Worker that uses a dictionary to map multiple URL paths to external destinati...
examples/workers-examples-bulk-redirects-cloudflare-workers-bulk-redirects-hono.textA Hono-based Cloudflare Workers implementation demonstrating bulk URL redirection using a Map object.Exact payloads, commands, or snippets shown in A Hono-based Cloudflare Workers implementation demonstrating bulk URL redirection using a Map object.

What This Skill Covers

  • Redirect requests to certain URLs based on a mapped object to the request's URL.
  • Main sections: Tags.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/examples/bulk-redirects