Release 0.80.18 - #3990
Merged
Merged
Release 0.80.18#3990
Conversation
* Re-enable Next.js image optimization Replace images.unoptimized with a config for the built-in optimizer: any remote host, qualities 75/100, a one-day minimumCacheTTL, a capped disk cache, and private-IP upstreams allowed only under next dev. Document in proxy.ts that it must not redirect non-page requests, since the optimizer's internal fetches pass through it without Host or X-Forwarded-Proto. That is what broke local images in Oct 2025. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Add regression test for proxy redirecting image optimizer fetches The optimizer's internal fetches for local images reach proxy as plain http with no Host header. Test that proxy passes them through under NODE_ENV=production, which is when the old https redirect fired. Also note in redirects() that local image paths must never be redirected. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Cap optimizer downloads at 20MB and test redirects skip local images Next buffers a remote source in memory up to maximumResponseBody (50MB by default) before checking it is an image, and a unique URL always misses the CDN, so lower the cap. The largest real image we know of is about 14MB. Add a test that no next.config.js redirect matches local image paths, since the optimizer's internal fetches go through the router too. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…se and program pages (#3969)
OpenAPI ChangesNo changes detected Unexpected changes? Ensure your branch is up-to-date with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Zaman Afzal
Carey P Gumaer