-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: better explanation for base
configuration
#8779
Conversation
🦋 Changeset detectedLatest commit: e5f96af The changes in this PR will be included in the next version bump. 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need a changeset for this change, but otherwise lgtm! Would also be good to have a pass from docs before merging too.
When does Astro manipulate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the sake of a quick, helpful PR to docs that is an improvement, I've made some suggestions below that I think can work in the short term.
But after talking with @delucis, I do think we need a more extensive look at this to consider this behaviour fully documented!
To be honest, I don't know when Astro does the manipulation, but I found this when I was testing a vite plugin, and the plugin received the |
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One missing word commented in below, but then Docs is happy with this PR! Would be nice to more fully understand exactly what's happening for documenting more fully later, but I think this is a helpful update as is!
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Changes
The documentation wasn't extensive enough IMHO. I didn't understand that
config.base
is also manipulated by Astro accordingly, this is important becausebase
is read by integrations too.I also added some practical examples.
Testing
N/A
Docs
/cc @withastro/maintainers-docs for feedback!