-
-
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
fix: make image endpoint highest priority #12591
Conversation
🦋 Changeset detectedLatest commit: e8e5a78 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 |
!preview image-endpoint |
@@ -23,7 +23,7 @@ export function ensureImageEndpointRoute( | |||
cwd?: string, | |||
) { | |||
if (!manifest.routes.some((route) => route.route === '/_image')) { |
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.
oh, this condition is probably not good, you can change the path of the image endpoint. It should use the config to find the path.
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.
Good point. A different issue but we can include it in this
CodSpeed Performance ReportMerging #12591 will not alter performanceComparing Summary
|
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 checked out the branch, and confirmed that the tests passed on my machine too
I'm going to wait til they pass in CI before merging |
Changes
Ensures that the image endpoint is highest priority, by adding it to the start of the route array rather than the end
Testing
Tested locally with repro site
Fixes #12589. Thanks @MathiasGmeiner
Docs