Skip to content

ref(astro): Check for Astro 4 config.devToolbar in Spotlight integration#212

Merged
Lms24 merged 5 commits into
mainfrom
lms/ref-astro-4-dev-toolbar
Dec 4, 2023
Merged

ref(astro): Check for Astro 4 config.devToolbar in Spotlight integration#212
Lms24 merged 5 commits into
mainfrom
lms/ref-astro-4-dev-toolbar

Conversation

@Lms24
Copy link
Copy Markdown
Member

@Lms24 Lms24 commented Dec 4, 2023

Incorporate changes from withastro/astro#9271

We now prefer the new devToolbar and addDevToolbarApp APIs over the overlay terms and check for the top-level config options correctly.

Upgraded to Astr 4 beta for types and added backward-compatible type cast (should be safe) to remove a few ts-ignores we previously threw in.

closes #211

@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
spotlightjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2023 3:13pm

@Lms24 Lms24 merged commit e2c3c90 into main Dec 4, 2023
@Lms24 Lms24 deleted the lms/ref-astro-4-dev-toolbar branch December 4, 2023 16:19
}
// Since Astro 4.0.0-beta.4, `devToolbar` is set and enabled by default.
// briefly, `devOverlay` was also added to the config but is now deprecated.
// Setting either of these to `true` or not setting any of them in the config file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm so sorry 😔

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, this is nothing compared to what we have to do in some other frameworks 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Astro's new devToolbar option

2 participants