Skip to content

[pull] canary from vercel:canary #207

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

Merged
merged 6 commits into from
Jul 19, 2025
Merged

[pull] canary from vercel:canary #207

merged 6 commits into from
Jul 19, 2025

Conversation

pull[bot]
Copy link

@pull pull bot commented Jul 19, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.3)

Can you help keep this open source service alive? 💖 Please sponsor : )

lukesandberg and others added 6 commits July 18, 2025 12:54
## Use `require` to load chunks in node instead of readFile+eval

The benefit of this is that we can slightly simplify chunk loading and make it easier for hosting services to cache bytecode.

Much like [browsers](https://v8.dev/blog/code-caching-for-devs), server environments often leverage VM features to cache parsed javascript as bytecode (or maybe binary ast?) to accelerate cold starts ([example](https://vercel.com/blog/introducing-bytecode-caching-for-vercel-functions)), however, these systems generally avoid caching highly dynamic content like inline scripts and `eval` parameters.  

So just use `require` which is what platforms expect!  This should help platforms achieve code caching, is generally simpler, and by not adding a prefix we fix some subtle off-by-one issue with source maps. 

A slightly better solution imho would be `import()` since it would enable node to do some file reading parsing async with the main thread which could be important if there are multiple `preloadModules`, however this breaks dev mode hot reloading.

Fixes #PACK-5062
Hide the segment explorer menu item in pages router 

Closes NEXT-4635
* The scrollbar styling was lost before while we enabling the draggable panel. Share that styles between all scrollable content
* Migrate the inline style to css and dynamic css into css variables, so we'll create less dynamic object during rendering.

<video src="https://github.com/user-attachments/assets/df63169f-4846-4c53-91b4-3ca0585dd76d" width="400">
### What?

This PR fixes an issue where pages with fallback route params weren't
triggering dynamic resume behavior in PPR (Partial Pre-Rendering).

### Why?

When fallback route params exist, the RSC (React Server Components) data
is inherently dynamic because the params are encoded into the flight
router state. Without this fix, pages with fallback route params would
incorrectly be treated as fully static, leading to incorrect behavior.

### How?

- Added a check in `app-render.tsx` to ensure that pages with fallback
route params (`workStore.fallbackRouteParams.size > 0`) always perform a
dynamic resume after the static prerender
- Refactored PPR tests to use deterministic sentinel markers (`<\!--
PPR_BOUNDARY_SENTINEL -->`) instead of time-based measurements for more
reliable testing
- Updated the test utilities to split responses based on the sentinel
marker rather than timing delays

This ensures that:
1. Pages with fallback route params correctly trigger dynamic behavior
2. PPR tests are more reliable and deterministic
3. The boundary between static and dynamic content is clearly marked in
test mode

Fixes #
This PR adds a pending state to the clear bundler cache & server
restart.

When the user clicks the restart server button, Next.js fetches
`/__nextjs_server_status` for the current server's execution ID. Then it
queries `/__nextjs_restart_dev` middleware to trigger the server
restart, then polls the `/__nextjs_server_status` path to confirm the
server execution ID differs, which means the new server is online.

When the server has restarted, reload the window.

Closes NEXT-4562
Closes NEXT-4501

---------

Co-authored-by: Jiachi Liu <[email protected]>
@pull pull bot locked and limited conversation to collaborators Jul 19, 2025
@pull pull bot added the ⤵️ pull label Jul 19, 2025
@pull pull bot merged commit e5711ab into code:canary Jul 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants