Repository navigation
chore(infra): move demo registry config to the top-level option - #3539
Conversation
experimental.registry was removed for 1.0 and now fails at startup, so the blog, DO and DO-solo demo sites no longer built.
|
🚀 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 deploymentPreview Deployments by commit
|
There was a problem hiding this comment.
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.mjsfiles change, with the registry key moved out ofexperimentalto a sibling ofplugins/database/storage. - The integration schema:
RegistryConfigInput = string | RegistryConfig, soregistry: "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.mdandAGENTS.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.
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-demoandinfra/do-solo-democonfigured the plugin registry withexperimental.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-levelregistryoption.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 theCF_ZONE_ID/CF_CACHE_PURGE_TOKENsecretsComments/CommentFormimported fromemdash/ui(all useemdash/ui/comments)emdash dev,emdash auth secret, and theemdash.urlpackage.json keyemdashsubpaths moved underemdash/internal/, and@emdash-cms/cloudflare/db/{d1,hyperdrive}-migrationsread:content,network:fetch,page:inject, …) in any plugin or sitemarketplaceintegration option and the plugin CLI's deprecated--author-*/--security-*flagsRemaining 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
Checklist
pnpm typecheckpasses: n/a, config-only change to three private sites; each site'sastro buildpasses.pnpm lintpasses: n/a, as above.pnpm testpasses (or targeted tests for my change): n/a, no package code changed.pnpm formathas been runAI-generated code disclosure
Screenshots / test output
Not applicable (no UI).
Before, with the original config:
After,
astro buildcompletes forinfra/blog-demo,infra/do-demoandinfra/do-solo-demo.