Data Readiness

Regulatory compliance platform with Astro content collections, MDX schemas, and multi-topic hub architecture for 12 data regulation frameworks.

7 lessons

Tags

Lessons

Astro Plugin Peer Dependency Pinning

In the Astro ecosystem, plugin packages (`@astrojs/*`) release independently of the core framework and frequently break peer dependency compatibility. Pin plugin versions explicitly and test upgrades in isolation rather than accepting latest.

Data Readiness 2026-05-24 implementation

Hub Consolidation Over Per-Site Scaffolding

When building a platform that serves N variants of the same structure, start with a single consolidated site that treats variation as data, not as separate projects. Late consolidation — after scaffolding N separate sites — is expensive and produces a massive, risky changeset.

Data Readiness 2026-05-24 implementation

MDX Scoped Styles in Astro

Astro's scoped `<style>` blocks do not penetrate MDX `<Content />` output. Any styles that need to reach MDX-rendered HTML must live in global CSS or use `:global()` selectors. This is a framework-level constraint, not a bug to work around.

Data Readiness 2026-05-24 implementation

Relative Link Fragility in Multi-Section Static Sites

Relative links in templated multi-section static sites break silently when page nesting depth varies. Use a systematic link strategy — either always-absolute paths from the site root, or a helper that resolves relative to the current topic — rather than hand-coding relative hrefs in content files.

Data Readiness 2026-05-24 implementation