delucis / astro-netlify-cms

Integration to add Netlify CMS’s admin dashboard to any Astro project
161 stars 21 forks source link

Use `injectRoute` to inject admin dashboard #30

Closed delucis closed 1 year ago

delucis commented 1 year ago

This PR heavily refactors the integration to make use of Astro’s built-in injectRoute helper instead of the flaky, hand-rolled page injection logic we were using up until now (which dated to before injectRoute’s existence).

This significantly simplifies things and should make future improvements easier to implement.

changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: 713da8a88e8283741a5ef6b981cd8582b4006801

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------------- | ----- | | astro-netlify-cms | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR