Skip to content

Worker Previews docs: restructure resources, add recipes, update cross-references#31775

Open
yomna-shousha wants to merge 10 commits into
productionfrom
worker-previews-docs-2
Open

Worker Previews docs: restructure resources, add recipes, update cross-references#31775
yomna-shousha wants to merge 10 commits into
productionfrom
worker-previews-docs-2

Conversation

@yomna-shousha

Copy link
Copy Markdown
Contributor

What this PR does

Restructures and expands the Worker Previews documentation.

Changes

New pages:

  • previews/recipes.mdx — static how-tos: PR preview per branch, persistent staging, data isolation, monorepo, migration from Wrangler environments, API-managed previews
  • previews/resources/index.mdx — overview of resource sharing and isolation
  • previews/resources/bindings.mdx — per-binding reference with config snippets
  • previews/resources/durable-objects.mdx — DO and Containers isolation details

New components:

  • PreviewsConfigDiagram.astro — base configuration diagram
  • PreviewsResourcesDiagram.astro — resource sharing diagram
  • Custom domain screenshot image

Restructured:

  • Split resources.mdx into resources/ directory (index, bindings, durable-objects)
  • Moved wrangler preview commands from previews/commands.mdxwrangler/commands/workers.mdx
  • Added redirect for deleted commands page

Updated cross-references:

  • builds/index, build-branches, configuration, api-reference
  • version-urls, versions-and-deployments, compare-preview-workflows
  • wrangler/configuration, wrangler/environments
  • migrate-from-pages

Deleted:

  • commands.mdx (content moved to wrangler commands)
  • resources.mdx (split into resources/ directory)
  • troubleshooting.mdx (content folded into other pages)

Normalized: "Worker Previews" → "Previews" across referenced pages

Not included (separate commits)

  • Service bindings cross-Preview design page
  • Interactive recipe builder component (WorkerPreviewsRecipeBuilder)

Known issues to fix later

  • /workers/configuration/cloudflare-access/ link in index.mdx needs correct path

…s-references

- Split resources.mdx into resources/ directory (index, bindings, durable-objects)
- Add recipes.mdx with static how-tos (PR preview, staging, data isolation, monorepo, migration, API)
- Move wrangler commands from previews/commands.mdx to wrangler/commands/workers.mdx
- Add redirect for deleted commands page
- Add PreviewsConfigDiagram and PreviewsResourcesDiagram components
- Update cross-references across builds, version-urls, environments, compare-preview-workflows
- Normalize 'Worker Previews' to 'Previews' in wrangler config, environments, migrate-from-pages
- Delete troubleshooting.mdx (content folded into other pages)
- Add custom domain screenshot image
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Review

✅ No issues found in commit 8678929.

Code Review

This code review is in beta and may not always be helpful — use your judgment.

No code review issues found.

Conventions

Checks PR title, description, and redirect checklist.

No convention issues found.

Style Guide Review

No style-guide issues found.

Redirects

No missing redirect entries found.

Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.
/ignore-review-limit Permanently lifts the 2-review automatic limit for this PR. Future pushes will trigger reviews as normal.
/disable-auto-review Stops automatic reviews from triggering on future pushes to this PR. Codeowners can still run /review or /full-review manually.

@github-actions github-actions Bot added product:workers Related to Workers product size/xl labels Jun 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR changes current filenames or deletes current files. Make sure you have redirects set up to cover the following paths:

  • /workers/configuration/previews/

@github-actions

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/public/__redirects @cloudflare/content-engineering, @cloudflare/product-owners
/src/assets/images/workers/ @cloudflare/workers-docs, @GregBrimble, @irvinebroque, @WalshyDev, @cloudflare/deploy-config, @cloudflare/product-owners, @cloudflare/wrangler, @MattieTK, @vy-ton
*.astro @cloudflare/content-engineering, @kodster28
*.ts @cloudflare/content-engineering, @kodster28
/src/content/docs/workers/ci-cd/ @irvinebroque, @aninibread, @GregBrimble, @ericclemmons, @cloudflare/product-owners, @yomna-shousha, @MattieTK, @vy-ton
/src/content/docs/workers/ @cloudflare/workers-docs, @GregBrimble, @irvinebroque, @mikenomitch, @korinne, @WalshyDev, @cloudflare/deploy-config, @cloudflare/product-owners, @cloudflare/wrangler, @MattieTK, @cloudflare/dev-plat-leads, @vy-ton
/src/content/docs/workers/static-assets @irvinebroque, @GregBrimble, @WalshyDev, @cloudflare/deploy-config, @cloudflare/product-owners, @MattieTK, @vy-ton
/src/content/docs/workers/wrangler/ @cloudflare/wrangler, @irvinebroque, @cloudflare/product-owners, @MattieTK, @vy-ton
/src/content/partials/workers/ @cloudflare/workers-docs, @GregBrimble, @irvinebroque, @mikenomitch, @WalshyDev, @cloudflare/deploy-config, @cloudflare/product-owners, @cloudflare/wrangler, @MattieTK, @vy-ton

@ask-bonk

ask-bonk Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

I have completed my review of PR #31775. My findings are summarized above in the review. Here's a quick recap of what needs maintainer attention:

  • Broken link in previews/index.mdx to /workers/configuration/cloudflare-access/ — should be /cloudflare-one/access-controls/policies/
  • "WIP" in page title on previews/recipes.mdx — should be removed before merging to production
  • Missing sidebar.order on compare-preview-workflows.mdx and version-urls.mdx — may affect sidebar placement

Everything else looks solid: redirects are in place, MDX syntax is clean, component imports and image paths are correct, and the cross-reference updates are comprehensive.

github run

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

… sidebar.order

- Fix /workers/configuration/cloudflare-access/ → /cloudflare-one/policies/access/
- Rewrite compare-preview-workflows.mdx: replace 'review URLs' with 'Preview URLs' throughout, tighten tone to match previews docs
- Add sidebar.order to compare-preview-workflows.mdx and version-urls.mdx
@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Preview URL: https://86789296.preview.developers.cloudflare.com
Preview Branch URL: https://worker-previews-docs-2.preview.developers.cloudflare.com

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/workers/previews/recipes/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/previews/recipes/
https://developers.cloudflare.com/workers/previews/resources/bindings/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/previews/resources/bindings/
https://developers.cloudflare.com/workers/wrangler/commands/workers/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/wrangler/commands/workers/
https://developers.cloudflare.com/workers/configuration/previews/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/configuration/previews/
https://developers.cloudflare.com/workers/previews/resources/durable-objects/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/previews/resources/durable-objects/
https://developers.cloudflare.com/workers/configuration/version-urls/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/configuration/version-urls/
https://developers.cloudflare.com/workers/previews/configuration/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/previews/configuration/
https://developers.cloudflare.com/workers/configuration/compare-preview-workflows/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/configuration/compare-preview-workflows/
https://developers.cloudflare.com/workers/previews/get-started/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/previews/get-started/
https://developers.cloudflare.com/workers/previews/custom-domains/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/previews/custom-domains/
https://developers.cloudflare.com/workers/previews/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/previews/
https://developers.cloudflare.com/workers/previews/resources/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/previews/resources/
https://developers.cloudflare.com/workers/ci-cd/builds/configuration/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/ci-cd/builds/configuration/
https://developers.cloudflare.com/workers/ci-cd/builds/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/ci-cd/builds/
https://developers.cloudflare.com/workers/ci-cd/builds/build-branches/ https://worker-previews-docs-2.preview.developers.cloudflare.com/workers/ci-cd/builds/build-branches/

- Fix Access link: /cloudflare-one/policies/access/ → /cloudflare-one/access-controls/policies/
- Fix placement link: /workers/configuration/smart-placement/ → /workers/configuration/placement/
- Add missing redirect for deleted /workers/previews/troubleshooting/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers Related to Workers product size/xl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants