Skip to content

[backport] Ensure setAssetPrefix updates config instance #31

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

Closed
wants to merge 16 commits into from

Conversation

austinderek
Copy link
Owner

Backports vercel#82160 to our next-15-4 release branch


🔄 This is a mirror of upstream PR #82165

nextjs-bot and others added 16 commits July 15, 2025 22:01
This ensures if using NextServer or a custom-server directly we honor
the custom config passed in correctly.

Backports to next-15-4 branch
When we updated `experimental.strictNextHead` to be true in vercel#65418, we
did not update all spots that would default to true in the case where
the value was omitted entirely.

This led to the default value not being correctly applied in pages
router, which resulted in duplicate metadata w/ React 19.

Since we made the flag the default, we can also probably clean up this
flag all together, but that can be done separately.

Fixes vercel#81655
Fixes vercel#81689
So what do we need to do about swc-project/swc#10813?

Not sure when we'd call `global_atom_store_gc()`

https://vercel.slack.com/archives/C03EWR7LGEN/p1752228740427529

The 2s-debounced gc calls didn't have a measurable effect on `next build --turbo`:
```
with gc:
  360.90s user 80.74s system 688% cpu 1:04.15 total
  357.24s user 82.61s system 664% cpu 1:06.23 total
without gc:
  360.51s user 80.48s system 698% cpu 1:03.16 total
  355.21s user 79.99s system 667% cpu 1:05.18 total
```

- [x] ~~Blocked on swc-project/swc#10878
- [ ] swc-project/swc#10930

Closes vercel#81898
Backports API stripping JSON fix to 15.4 branch

x-ref: vercel#82061
This backports vercel#82136 to our
next-15-4 release branch
This ensures we update `nextConfig.assetPrefix` instead of `renderOpts`
as we aren't relying on `renderOpts` for these values anymore.

Closes: vercel#82150
@austinderek austinderek deleted the ijjk/backport-assetprefix-handling branch July 30, 2025 20:19
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.

7 participants