Skip to content

Empty NextNodeServer#handleNextImageRequest to avoid pulling unneed…#1098

Merged
vicb merged 5 commits intomainfrom
vicb/empty-handleNextImageRequest
Jan 27, 2026
Merged

Empty NextNodeServer#handleNextImageRequest to avoid pulling unneed…#1098
vicb merged 5 commits intomainfrom
vicb/empty-handleNextImageRequest

Conversation

@vicb
Copy link
Copy Markdown
Contributor

@vicb vicb commented Jan 27, 2026

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 27, 2026

🦋 Changeset detected

Latest commit: 695517a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@opennextjs/aws Patch
app-pages-router Patch

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 27, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 27.78% 2891 / 10406
🔵 Statements 27.78% 2891 / 10406
🔵 Functions 51.71% 151 / 292
🔵 Branches 76.2% 730 / 958
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/open-next/src/build/patch/patches/patchNextServer.ts 100% 100% 100% 100%
Generated in workflow #1710 for commit 695517a by the Vitest Coverage Report Action

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jan 27, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@opennextjs/aws@1098

commit: 695517a

Copy link
Copy Markdown
Collaborator

@sommeeeer sommeeeer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was fast Victor. Good job on this one :)

Are that .yaml file in the commit something new we're doing? Or is it from playground in ast-grep?

@vicb
Copy link
Copy Markdown
Contributor Author

vicb commented Jan 27, 2026

Are that .yaml file in the commit something new we're doing? Or is it from playground in ast-grep?

Good catch, it should be removed.
I'll do once I validate that the PR fixes the issue.
Thx!

@vicb vicb requested review from conico974 and sommeeeer and removed request for sommeeeer January 27, 2026 10:27
@vicb
Copy link
Copy Markdown
Contributor Author

vicb commented Jan 27, 2026

@sommeeeer This is now ready for review, it reduces the bundle size by 0.3MB, see the issue linked in the description for details.

@sommeeeer
Copy link
Copy Markdown
Collaborator

@sommeeeer This is now ready for review, it reduces the bundle size by 0.3MB, see the issue linked in the description for details.

Good job ✂️

@vicb vicb merged commit 43d31b7 into main Jan 27, 2026
3 of 4 checks passed
@vicb vicb deleted the vicb/empty-handleNextImageRequest branch January 27, 2026 10:37
@vicb
Copy link
Copy Markdown
Contributor Author

vicb commented Jan 27, 2026

Thanks for the review Magnus

conico974 added a commit to opennextjs/adapters-api that referenced this pull request Mar 21, 2026
conico974 added a commit to opennextjs/adapters-api that referenced this pull request Mar 29, 2026
* Add SKILL.md for porting PRs and AGENTS.md for coding guidelines

* update skill

* Port opennextjs/opennextjs-aws#1118 as a test

* Port opennextjs/opennextjs-aws#1117

* update skill

* Port opennextjs/opennextjs-aws#1114

* Port PR opennextjs/opennextjs-aws#1107

* update skills

* Port PR opennextjs/opennextjs-aws#1108

* Port PR opennextjs/opennextjs-aws#1104

* Port PR opennextjs/opennextjs-aws#1101

* Port PR opennextjs/opennextjs-aws#1098

* review
conico974 added a commit to opennextjs/adapters-api that referenced this pull request Mar 29, 2026
* Add SKILL.md for porting PRs and AGENTS.md for coding guidelines

* update skill

* Port opennextjs/opennextjs-aws#1118 as a test

* Port opennextjs/opennextjs-aws#1117

* update skill

* Port opennextjs/opennextjs-aws#1114

* Port PR opennextjs/opennextjs-aws#1107

* update skills

* Port PR opennextjs/opennextjs-aws#1108

* Port PR opennextjs/opennextjs-aws#1104

* Port PR opennextjs/opennextjs-aws#1101

* Port PR opennextjs/opennextjs-aws#1098

* chore: port PR #1083 from source repository

opennextjs/opennextjs-cloudflare#1083

Changeset: .changeset/port-pr-1083.md

* chore: port PR #1105 from source repository

opennextjs/opennextjs-cloudflare#1105

Changeset: .changeset/port-pr-1105.md

* chore: port PR #1097 from source repository

opennextjs/opennextjs-cloudflare#1097

Changeset: .changeset/port-pr-1097.md

* chore: port PR #1122 from source repository

opennextjs/opennextjs-cloudflare#1122

Applied bugfixes and improvements to the 'migrate' command:
- Fixed extra newlines when appending to files (updated conditionalAppendFileSync signature)
- Fixed error when 'public' directory is missing (creates parent directories automatically)
- Fixed Next.js config file update to check if the file exists first
- Updated checkRunningInsideNextjsApp to accept { appPath: string } instead of full BuildOptions

Changesets:
- .changeset/port-pr-1122-cloudflare.md
- .changeset/port-pr-1122-aws.md

* chore: update port PR skill instructions for staging and committing changes

* chore: port PR #1126 from source repository

opennextjs/opennextjs-cloudflare#1126

Fix: prevent Worker hang on HEAD requests to static assets

When run_worker_first is enabled, HEAD requests to static assets hang
the Worker because response.body is null (per HTTP spec) and the
fallback new ReadableStream() creates a stream that never closes.

Changes:
- Return null body for HEAD requests instead of falling through to
the hanging ReadableStream fallback
- Add tests for maybeGetAssetResult covering GET, HEAD, 404, POST,
and run_worker_first=false cases

Changeset: .changeset/port-pr-1126.md

* linting

* chore: port PR #1127 from source repository

opennextjs/opennextjs-cloudflare#1127

Changeset: .changeset/port-pr-1127.md

* chore: port PR #1138 from source repository

opennextjs/opennextjs-cloudflare#1138

Changeset: .changeset/port-pr-1138.md

* chore: port PR #1133 from source repository

opennextjs/opennextjs-cloudflare#1133

Changeset: .changeset/port-pr-1133.md

Update the migrate command to attempt to create an R2 bucket for caching
as part of the migration process, if that is not possible an application
without caching enabled will be generated instead.

* chore: port PR #1142 from source repository

opennextjs/opennextjs-cloudflare#1142

Changeset: .changeset/port-pr-1142.md

* chore: port PR #1147 from source repository

opennextjs/opennextjs-cloudflare#1147

make dev /cdn-cgi/image behaves like prod for consistency

Changeset: .changeset/port-pr-1147.md

* chore: port PR #1150 from source repository

opennextjs/opennextjs-cloudflare#1150

Changeset: .changeset/port-pr-1150.md

* fix lockfile

* fix test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants