§ Blog · pilotage
Adopting composable V2 without breaking prod · field note
How to progressively migrate to SectionsRenderer while preserving existing pages — the back-compat pattern with conditional branch.
Migration vers SectionsRenderer testée en prod aujourd’hui sur /offres/composable-pilot. Pattern retenu :
const useComposable = Array.isArray(data.sections) && data.sections.length > 0;
Si sections est défini dans le frontmatter MDX → SectionsRenderer. Sinon → template traditionnel. Compatibilité backward 100 %, migration page-par-page, zéro casse.
Leçon : ne pas remplacer, ajouter une branche. Le code applicatif évolue sans dette technique.