astrolicious / astro-tips.dev

The place for content that goes beyond the official docs, for all Astronauts!

Home Page:https://astro-tips.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Specify astro version compatible per tip

florian-lefebvre opened this issue · comments

Perhaps a <CompatibleWith version="" /> component?

Yeah sounds good!

We could also look at adding a frontmatter value for the version (making it required), then add an override to show it on the page, and even add a warning if it's targeting an old major (e.g. "This is an Astro 3.0 recipe and may not work well with v4.0 or later")

That sounds powerful!