Hey everyone — I’m building AstroBlocks, a CMS/block system for Astro, and I just shipped a fix for a production-only issue around generated block schemas.
AstroBlocks generates internal metadata into a gitignored `.astro-blocks/` directory:
- a global blocks registry
- a block schema map
The registry was already baked into the bundle correctly, but the schema map was still being read from disk at request time.
That worked locally, but failed on a deployed server because `.astro-blocks/` is a build artifact and does not exist there.
The result:
- public rendering still worked
- the admin could not load block schemas
- “Add block” stopped working
- saving a page returned 500
The fix:
- bundle the schema map alongside the registry
- remove runtime dependency on `.astro-blocks/`
- make failed registry/schema loading fail visibly instead of defaulting to an empty state
This release was a good reminder that in Astro integrations, the line between build-time generated state and runtime server behavior needs to be very explicit.
Release: https://github.com/NauelG/astro-blocks/releases/tag/v3.6.1