Skip to content

chore(infra): move demo registry config to the top-level option - #3539

Merged
ascorbic merged 1 commit into
mainfrom
chore/upgrade-sites-for-1-0
Sep 28, 2026
Merged

ascorbic merged 1 commit into
mainfrom
chore/upgrade-sites-for-1-0

Conversation

@ascorbic

Copy link
Copy Markdown
Member

What does this PR do?

Updates the monorepo sites that still used an API removed for 1.0, so they build again.

infra/blog-demo, infra/do-demo and infra/do-solo-demo configured the plugin registry with experimental.registry. #3519 removed that option, and EmDash now fails at startup when it is set. Each site now sets the same URL through the top-level registry option.

I searched every site, demo, template, e2e fixture, doc and skill for the other APIs removed or deprecated for 1.0, and found no remaining uses:

  • cloudflareCache(), @emdash-cms/cloudflare/cache, and the CF_ZONE_ID / CF_CACHE_PURGE_TOKEN secrets
  • Comments / CommentForm imported from emdash/ui (all use emdash/ui/comments)
  • emdash dev, emdash auth secret, and the emdash.url package.json key
  • the emdash subpaths moved under emdash/internal/, and @emdash-cms/cloudflare/db/{d1,hyperdrive}-migrations
  • deprecated plugin capability names (read:content, network:fetch, page:inject, …) in any plugin or site
  • the deprecated marketplace integration option and the plugin CLI's deprecated --author-* / --security-* flags

Remaining matches for the old capability names are compatibility code, not usage: the admin's consent labels for legacy marketplace manifests, the marketplace audit test fixtures, and the e2e mock marketplace, which serves legacy manifests on purpose.

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: n/a, config-only change to three private sites; each site's astro build passes.
  • pnpm lint passes: n/a, as above.
  • pnpm test passes (or targeted tests for my change): n/a, no package code changed.
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable): n/a, config-only.
  • User-visible strings in the admin UI are wrapped for translation (if applicable): n/a
  • I have added and reviewed the user-facing changeset (if this PR changes a published package): n/a, the three sites are private.
  • New features link to an approved Discussion: n/a
  • I have included screenshots below if this PR changes the UI: n/a

AI-generated code disclosure

  • This PR includes AI-generated code — model/tool: Claude Opus 5.5 (Claude Code)

Screenshots / test output

Not applicable (no UI).

Before, with the original config:

EmDash config: `experimental.registry` has been removed. Configure the registry with the top-level `registry` option instead.

After, astro build completes for infra/blog-demo, infra/do-demo and infra/do-solo-demo.

experimental.registry was removed for 1.0 and now fails at startup, so
the blog, DO and DO-solo demo sites no longer built.
@changeset-bot

changeset-bot Bot commented Sep 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 960226e

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 size/S review/needs-review No maintainer or bot review yet labels Sep 28, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://chore-upgrade-sites-for-1-0.try.emdashcms.com, https://chore-upgrade-sites-for-1-0-emdash-playground.emdash-cms.workers.dev (commit 960226e)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://7653f45d.try.emdashcms.com, https://7653f45d-emdash-playground.emdash-cms.workers.dev 960226e 2026-09-28T05:45:42.404Z Visit the dashboard ↗

@emdashbot emdashbot Bot 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.

This is a straightforward, correct chore: three private infra/demo sites still used experimental.registry inside the EmDash integration options, and #3519 removed that option so startup now fails. The PR moves the same aggregator URL to the top-level registry integration option, which accepts a string shorthand and normalizes to { aggregatorUrl: "https://registry.emdashcms.com" }.

I checked:

  • The exact diff: only the three astro.config.mjs files change, with the registry key moved out of experimental to a sibling of plugins/database/storage.
  • The integration schema: RegistryConfigInput = string | RegistryConfig, so registry: "https://registry.emdashcms.com" is valid.
  • Tree-wide search: no remaining site/template/fixture config still sets experimental.registry; remaining matches are error messages, changelogs, tests, and an intentional ATProto test fixture.
  • The sites are private infra/* packages, so no changeset is required per .changeset/README.md and AGENTS.md.

No logic issues, no AGENTS.md violations, no security or data-integrity concerns. The change is purely config migration and matches the upstream API change. LGTM.

@github-actions github-actions Bot added review/approved Approved; no new commits since and removed review/needs-review No maintainer or bot review yet labels Sep 28, 2026
@ascorbic
ascorbic enabled auto-merge (squash) September 28, 2026 05:50
@ascorbic
ascorbic merged commit b7155b3 into main Sep 28, 2026
41 checks passed
@ascorbic
ascorbic deleted the chore/upgrade-sites-for-1-0 branch September 28, 2026 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: signed review/approved Approved; no new commits since size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant