-
-
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
Run astro:config:done
hook before generating route manifest
#12936
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: eca2174 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 |
settings.buildOutput = getPrerenderDefault(config) ? 'static' : 'server'; | ||
// NOTE: `buildOutput` may already be set by `runHookConfigDone` if the adapter only | ||
// support server build output | ||
settings.buildOutput ??= getPrerenderDefault(config) ? 'static' : 'server'; |
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.
So the reordering of hooks is for this to work right? Just to make sure I understand, we don't want to infer the build output if the adapter locks it. Is that right?
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.
Yup. This code will only work as a fallback
This requires changes to the integration reference:
|
Yeah I suppose we have to update it if this PR works. Would technically be kinda breaking, though otherwise I don't see an easy way else to fix this. |
Yes technically breaking, I have some integrations relying on the order. That being said, I think the hook is recent enough so it's not used a lot yet, let's do it if it's the only way. Most important thing is to check it doesn't break official adapters |
CodSpeed Performance ReportMerging #12936 will not alter performanceComparing Summary
|
Changes
fix #12803
Testing
n/a. it's a bit hard to add test for this one
Docs
n/a. bug fix.