Skip to content

Release 0.80.18 - #3990

Merged
odlbot merged 4 commits into
releasefrom
release-candidate
Sep 28, 2026
Merged

odlbot merged 4 commits into
releasefrom
release-candidate

Conversation

@odlbot

@odlbot odlbot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Zaman Afzal

Carey P Gumaer

gumaerc and others added 4 commits September 24, 2026 11:50
* 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>
@odlbot
odlbot requested a review from a team as a code owner September 24, 2026 18:19
@github-actions

Copy link
Copy Markdown

OpenAPI Changes

No changes detected

View full changelog

Unexpected changes? Ensure your branch is up-to-date with main (consider rebasing).

@odlbot
odlbot merged commit 7c68a5d into release Sep 28, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants