Skip to content

ci: adopt Worker Previews for playground - #2533

Merged
ascorbic merged 1 commit into
mainfrom
codex/worker-previews-cutover
Aug 18, 2026
Merged

ci: adopt Worker Previews for playground#2533
ascorbic merged 1 commit into
mainfrom
codex/worker-previews-cutover

Conversation

@ascorbic

@ascorbic ascorbic commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Switches playground PR deployments from the prerelease Worker Preview workaround to the current Worker Previews flow.

  • Uses Wrangler 4.123.0 for the playground and refreshes its generated Worker types.
  • Gives Preview deployments a dedicated SESSION KV namespace while keeping Durable Object state automatically isolated per Preview.
  • Removes the legacy preview_urls setting and the GitHub Action that reconstructed Preview URLs from Cloudflare bot comments.
  • Relies on Workers Builds to post the stable Preview URL and immutable Deployment URL directly on the PR.

Created Cloudflare resource: emdash-playground-preview-session (efd741f1e4d1443e841a187b3a4cb023).

Before merge, update the playground Worker in Dash:

  1. Under Settings → Build, set NODE_OPTIONS=--max-old-space-size=6144 as a build variable.
  2. Ensure Preview Builds is enabled with npx wrangler preview as the Preview command.

Related issue: none.

Type of change

  • Bug fix
  • Feature (requires maintainer-approved Discussion)
  • Refactor (no behavior change)
  • Translation
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • I have read CONTRIBUTING.md
  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable)
  • User-visible strings in the admin UI are wrapped for translation (if applicable). Do not include messages.po changes except in translation PRs — a workflow extracts catalogs on merge to main.
  • I have added a changeset (if this PR changes a published package)
  • New features link to an approved Discussion: https://github.com/emdash-cms/emdash/discussions/...

The unchecked items are not applicable: this changes CI/demo configuration without application behavior, user-visible strings, or a published package.

AI-generated code disclosure

  • This PR includes AI-generated code — model/tool: GPT-5 Codex

Screenshots / test output

No visual change.

Validated with:

  • pnpm install --frozen-lockfile --lockfile-only
  • pnpm build
  • pnpm typecheck
  • pnpm typecheck:demos
  • pnpm lint
  • pnpm format
  • pnpm --filter @emdash-cms/playground build
  • wrangler types --check
  • wrangler deploy --dry-run

Try this PR

Open a fresh playground →

A full working EmDash site, deployed from this branch. Each visit gets its own session-scoped sandbox: no login needed and no shared state. Try the admin, edit content, hit the public site.

Tracks codex/worker-previews-cutover. Updated automatically when the playground redeploys.

Copilot AI lite review requested due to automatic review settings August 17, 2026 16:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added review/awaiting-author Reviewed; waiting on the author to respond area/ci size/XL labels Aug 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Scope check

This PR changes 1,338 lines across 6 files. Large PRs are harder to review and more likely to be closed without review.

If this scope is intentional, no action needed. A maintainer will review it. If not, please consider splitting this into smaller PRs.

See CONTRIBUTING.md for contribution guidelines.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 17, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
emdash-demo-cache 87010bb Aug 17 2026, 04:29 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 17, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
emdash-playground 87010bb Aug 17 2026, 04:28 PM

@pkg-pr-new

pkg-pr-new Bot commented Aug 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/@emdash-cms/admin@2533

@emdash-cms/auth

npm i https://pkg.pr.new/@emdash-cms/auth@2533

@emdash-cms/auth-atproto

npm i https://pkg.pr.new/@emdash-cms/auth-atproto@2533

@emdash-cms/blocks

npm i https://pkg.pr.new/@emdash-cms/blocks@2533

@emdash-cms/cloudflare

npm i https://pkg.pr.new/@emdash-cms/cloudflare@2533

@emdash-cms/contentful-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/contentful-to-portable-text@2533

emdash

npm i https://pkg.pr.new/emdash@2533

create-emdash

npm i https://pkg.pr.new/create-emdash@2533

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/gutenberg-to-portable-text@2533

@emdash-cms/plugin-cli

npm i https://pkg.pr.new/@emdash-cms/plugin-cli@2533

@emdash-cms/plugin-types

npm i https://pkg.pr.new/@emdash-cms/plugin-types@2533

@emdash-cms/registry-client

npm i https://pkg.pr.new/@emdash-cms/registry-client@2533

@emdash-cms/registry-lexicons

npm i https://pkg.pr.new/@emdash-cms/registry-lexicons@2533

@emdash-cms/registry-verification

npm i https://pkg.pr.new/@emdash-cms/registry-verification@2533

@emdash-cms/sandbox-workerd

npm i https://pkg.pr.new/@emdash-cms/sandbox-workerd@2533

@emdash-cms/x402

npm i https://pkg.pr.new/@emdash-cms/x402@2533

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/@emdash-cms/plugin-ai-moderation@2533

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/@emdash-cms/plugin-atproto@2533

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/@emdash-cms/plugin-audit-log@2533

@emdash-cms/plugin-color

npm i https://pkg.pr.new/@emdash-cms/plugin-color@2533

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/@emdash-cms/plugin-embeds@2533

@emdash-cms/plugin-field-kit

npm i https://pkg.pr.new/@emdash-cms/plugin-field-kit@2533

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/@emdash-cms/plugin-forms@2533

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/@emdash-cms/plugin-webhook-notifier@2533

commit: 87010bb

@ascorbic
ascorbic force-pushed the codex/worker-previews-cutover branch from e3db27d to 87010bb Compare August 17, 2026 16:22
@changeset-bot

changeset-bot Bot commented Aug 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 87010bb

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added review/needs-rereview Author pushed changes since the last review and removed review/awaiting-author Reviewed; waiting on the author to respond labels Aug 17, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
emdash-demo-do 87010bb Aug 17 2026, 04:29 PM

@ascorbic
ascorbic merged commit 470a62c into main Aug 18, 2026
47 checks passed
@ascorbic
ascorbic deleted the codex/worker-previews-cutover branch August 18, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci review/needs-rereview Author pushed changes since the last review size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants