Using astro add [...]
with empty defineConfig()
not automatically adding integration to config
#11836
Labels
- P2: nice to have
Not breaking anything but nice to have (priority)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When using
astro add
with an empty Astro config (example below) then the CLI will not recommend nor add the integration to the Astro config file.Example config file:
Even without the object, this is still a valid config (or at least will build).
What's the expected result?
The CLI should prompt with a code change to add the object parameter to the config in addition to the normal recommendation to add the
integrations: [exampleIntegration()]
code within that object.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-zsaoce?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: