Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Preview URLs

Explains how to use versioned and aliased preview URLs to test Worker versions in live environments without affecting production deployments, including methods for accessing them via Wrangler or the Cloudflare dashboard.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Preview URLs

Explains how to use versioned and aliased preview URLs to test Worker versions in live environments without affecting production deployments, including methods for accessing them via Wrangler or the Cloudflare dashboard.

When To Use

Use when you need to preview new Worker versions in a live environment, set up CI/CD preview environments, or create human-readable aliases for specific deployments.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-configuration-previews-preview-urls-workflow-guide.mdDocumentation explaining the types and management of versioned and aliased preview URLs for Cloudflare Workers.Questions about documentation explaining the types and management of versioned and aliased preview URLs for Cloudflare Workers.
examples/workers-configuration-previews-preview-urls-cloudflare-workers-wrangler-.textA text command demonstrating how to use the wrangler versions upload flag to set a preview alias for Cloudflare Workers.Exact payloads, commands, or snippets shown in A text command demonstrating how to use the wrangler versions upload flag to set a preview alias for Cloudflare Workers.
examples/workers-configuration-previews-preview-urls-cloudflare-workers-configura.textA configuration snippet demonstrating how to enable preview URLs within a Cloudflare Workers configuration file.Exact payloads, commands, or snippets shown in A configuration snippet demonstrating how to enable preview URLs within a Cloudflare Workers configuration file.
examples/workers-configuration-previews-preview-urls-cloudflare-workers-preview-u.textA text configuration example demonstrating how to enable preview URLs in a Cloudflare Workers configuration file.Exact payloads, commands, or snippets shown in A text configuration example demonstrating how to enable preview URLs in a Cloudflare Workers configuration file.
examples/workers-configuration-previews-preview-urls-cloudflare-workers-preview-u-2.textA configuration snippet demonstrating how to enable or disable preview URLs in a Cloudflare Workers wrangler configuration file.Exact payloads, commands, or snippets shown in A configuration snippet demonstrating how to enable or disable preview URLs in a Cloudflare Workers wrangler configur...
examples/workers-configuration-previews-preview-urls-cloudflare-workers-preview-u-3.textA text example demonstrating how to configure the preview_urls setting within a Cloudflare Workers configuration file.Exact payloads, commands, or snippets shown in A text example demonstrating how to configure the previewurls setting within a Cloudflare Workers configuration file.

What This Skill Covers

  • Preview URLs allow you to preview new versions of your Worker without deploying it to production.
  • Main sections: Types of Preview URLs, Versioned Preview URLs, View versioned preview URLs using Wrangler, View versioned preview URLs on the Workers dashboard, Aliased preview URLs.

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/configuration/previews