- 06 Oct, 2025 22 commits
-
-
nextjs-bot authored
-
Hendrik Liebau authored
[flakiness metric](https://app.datadoghq.com/ci/test/runs?query=test_level%3Atest%20%40git.repository.id%3A%22github.com%2Fvercel%2Fnext.js%22%20%40test.name%3A%22Static%20Image%20Component%20Tests%20development%20mode%20Should%20allow%20an%20image%20with%20a%20static%20src%20to%20omit%20height%20and%20width%22%20%40test.type%3A%22turbopack%22%20%40test.status%3A%22fail%22&agg_m=count&agg_m_source=base&agg_t=count¤tTab=overview&eventStack=&fromUser=false&index=citest&start=1759057503838&end=1759662303838&paused=false) I suspect that the test `Should allow an image with a static src to omit height and width` is frequently failing with `waiting for locator('#basic-static') to be visible` because the image is covered by one of the images with a `fill` prop, which are rendered later in the page. This means that the image is not actually visible, even though it is in the DOM. Playwright then fails to find it. However, I wasn't able to reproduce this locally. The fix is to wrap the `fill` images in a relatively positioned div with a set height, so that they don't cover the other images. **Before:** <img width="490" height="894" alt="before" src="https://github.com/user-attachments/assets/7632dc67-a649-42b7-8b62-a9a216632ec2" /> **After:** <img width="490" height="894" alt="after" src="https://github.com/user-attachments/assets/2d369e4d-ef08-47cc-bdc4-04ab94afcceb" /> --------- Co-authored-by:
graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
-
Jiwon Choi authored
Enabling `experimental.isolatedDevBuild` required many changes to the current workflow, so we will incrementally roll out to the tests. Enabling on test-dev instead of test-experimental-dev because `-experimental` CIs are filtered via `experimental-tests-manifest.json` and they don't cover all tests. We want to enable this feature by default so we should ensure this incremental rollout is covered on all test cases. The flag was enabled for `test-experimental-dev` at https://github.com/vercel/next.js/pull/84099, and this PR moves the flag to the `test-dev` job. 1. ~~test-experimental-dev ([link](https://github.com/vercel/next.js/pull/84099))~~ 2. test-dev (here) 3. test-prod 4. test-integration 5. test-unit 6. Enable by default, remove the flag, and update the rest x-ref: https://github.com/vercel/next.js/pull/84043
-
nextjs-bot authored
-
Vercel Release Bot authored
This auto-generated PR updates the production integration test manifest used when testing Rspack.
-
Luke Sandberg authored
Add a webpack flag to create next app. Ensure that if you set it or decline turbopack we set the --webpack flag on the generated project (#84476) Add a --webpack flag to create-next-app to allow selecting the webpack bundler. Add the --webpack flag to the `next` command lines if it is set or if the turbopack prompt is declined. This is necessary now that we have flipped the default.
-
Vercel Release Bot authored
This auto-generated PR updates the development integration test manifest used when testing Rspack.
-
Joshua Hannaford authored
## Improve error message when Next.js package can't be found ### What? Enhances the `get_next_package` function to provide a more informative error message when the Next.js package cannot be found from the context directory. ### Why? When users encounter issues with Next.js package resolution, the previous generic error message "Next.js package not found" didn't provide enough context or guidance on how to fix the problem. The improved error message explains potential causes and solutions. ### How? - Updated the function to use Vc<FileSystemPath> for context_directory - Improved error handling with a detailed message that: - Explains the issue clearly - Shows the context directory path where resolution failed - Suggests setting `turbopack.root` in the Next.js config - Mentions potential issues with symlinks - Provides a link to documentation for more information ### How to Test To test this, 1. Modify `<projectRoot>/bench/basic-app/next.config.js` to ```js module.exports = { experimental: { serverMinification: true, }, turbopack: { root: __dirname, } } ``` 2. Run `pnpm build && pnpm swc-build-native` to ensure that you have the updated code 3. Run `pnpm next dev --turbo bench/basic-app` and ensure the error shows up exactly once 4. Run `pnpm next build --turbo bench/basic-app` and ensure the same error shows up exactly once --------- Co-authored-by:Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Co-authored-by:
Luke Sandberg <lukeisandberg@gmail.com>
-
Jiwon Choi authored
Enabling `experimental.isolatedDevBuild` required many changes to the current workflow, so we will incrementally roll out to the tests. Enabling on test-integration instead of test-experimental-integration because `-experimental` CIs are filtered via `experimental-tests-manifest.json` and they don't cover all tests. We want to enable this feature by default so we should ensure this incremental rollout is covered on all test cases. 1. ~~test-experimental-dev ([link](https://github.com/vercel/next.js/pull/84099))~~ 2. test-dev ([link](https://github.com/vercel/next.js/pull/84562)) 2. test-prod ([link](https://github.com/vercel/next.js/pull/84556)) 3. test-integration (here) 4. test-unit 5. Enable by default, remove the flag, and update the rest x-ref: https://github.com/vercel/next.js/pull/84043
-
Jiwon Choi authored
Since we're going to enable `experimental.isolatedDevBuild` by default, add `".next/dev/types"` to CNA templates tsconfig include. This is required for CNA test `projectShouldHaveNoGitChanges()` as Next.js automatically adds this when the `isolatedDevBuild` is enabled.
-
Jiwon Choi authored
Enabling `experimental.isolatedDevBuild` required many changes to the current workflow, so we will incrementally roll out to the tests. Enabling on test-prod instead of test-experimental-prod because `-experimental` CIs are filtered via `experimental-tests-manifest.json` and they don't cover all tests. We want to enable this feature by default so we should ensure this incremental rollout is covered on all test cases. 1. ~~test-experimental-dev ([link](https://github.com/vercel/next.js/pull/84099))~~ 2. test-dev ([link](https://github.com/vercel/next.js/pull/84562)) 3. test-prod (here) 4. test-integration 5. test-unit 6. Enable by default, remove the flag, and update the rest x-ref: https://github.com/vercel/next.js/pull/84043
-
Zack Tanner authored
Refactors some older prefetching tests to be compatible with `clientSegmentCache`. The old tests were too tightly coupled to router implementation details. Some of the ones that don't make sense to convert were removed (for ex, asserting on prefetch cache seeding behavior, or fetch priority of "high", as fetch priority is managed differently with the new router). This refactors the tests to leverage the `act` util from `segment-cache` test suites, and implemented the accordion behavior to more granularly control when prefetches are dispatched. I copied those implementations for now since we don't have a global util for it.
-
nextjs-bot authored
Co-authored-by:Sebastian Sebbie Silbermann <sebastian.silbermann@vercel.com>
-
Jiwon Choi authored
Enabling `experimental.isolatedDevBuild` required many changes to the current workflow, so we will incrementally roll out to the tests. 1. ~~test-experimental-dev ([link](https://github.com/vercel/next.js/pull/84099))~~ 2. test-dev ([link](https://github.com/vercel/next.js/pull/84562)) 2. test-prod ([link](https://github.com/vercel/next.js/pull/84556)) 3. test-integration ([link](https://github.com/vercel/next.js/pull/84558)) 4. test-unit (here) 5. Enable by default, remove the flag, and update the rest x-ref: https://github.com/vercel/next.js/pull/84043
-
nextjs-bot authored
Co-authored-by:Sebastian Sebbie Silbermann <sebastian.silbermann@vercel.com>
-
Josh Story authored
This does not add any validation but it makes the interface for prerender match out intended API shape when validation is landed --------- Co-authored-by:Janka Uryga <lolzatu2@gmail.com>
-
Niklas Mischkulnig authored
Looks like #84319 forgot to enable them for the server chunks
-
Luke Sandberg authored
Should be a small perf win. Also, use `wrapping_add` instead of xor as our commutative operator.
-
Benjamin Woodruff authored
This ensures the tests have some coverage for `next dev`, and ensures proper test isolation. Previously they were just using `__dirname`, which is wrong.
-
Jude Gao authored
-
Josh Story authored
Metadata and Viewport litter the component tree with a number of Next.js internal implementation details. We can't yet get rid of all of these but we can simplify by consolidating these components or eliminating them altogether. One change is to render the metadata as a promise that resolves direclty to the client tags that must be in the head. Another is to render a promise that will directly reject with the error reason rather than reconstructing a digest manually. In the process I removed a bunch of module indirection too
-
- 05 Oct, 2025 5 commits
-
-
Hendrik Liebau authored
The experimental flag `reactDebugChannel` is currently off by default. To avoid regressions in the debug channel integration, we enable the flag for the experimental test shards.
-
nextjs-bot authored
-
Hendrik Liebau authored
In development mode, the request ID needs to be available before the bootstrap script executes and triggers hydration. Previously, the request ID was set inline with the flight data stream in a script tag that was inserted after the bootstrap script, which could lead to a race condition where `self.__next_r` was accessed before it was defined. With this PR, we're moving the request ID initialization to `bootstrapScriptContent`, which is inserted as a script tag by React immediately before the bootstrap script. This ensures that the request ID is always defined when the bootstrap script runs. I wasn't actually able to reproduce the issue, so I also couldn't add a test for it. But we did receive reports from users that this was happening, which is plausible given the previous script order.
-
nextjs-bot authored
-
Tobias Koppers authored
Revert "Turbopack: skip invalidating a task on cell/output change when the dependency is outdated" (#84526) Reverts vercel/next.js#84376
-
- 04 Oct, 2025 6 commits
-
-
nextjs-bot authored
-
Zack Tanner authored
When we calculate the desired `staleTime` value we leverage the `selectStaleTime` util which has some logic to fallback to the `experimental.staleTimes` configuration if not otherwise overridden in the prerenderStore. Without this change, the static staleTime from the `/_tree` requests would always be the max (1 year), regardless of user configuration. This was caught by `prefetching.stale-times.test.ts` which I have re-enabled & refactored in the next PR in the stack.
-
Zack Tanner authored
Waits for prefetches to complete before navigating. [x-ref](https://github.com/vercel/next.js/actions/runs/18237285313/attempts/3)
-
Zack Tanner authored
These are passing independently of any fixes
-
Vercel Release Bot authored
This auto-generated PR updates the production integration test manifest used when testing Rspack.
-
Vercel Release Bot authored
This auto-generated PR updates the development integration test manifest used when testing Rspack.
-
- 03 Oct, 2025 7 commits
-
-
nextjs-bot authored
-
nextjs-bot authored
Co-authored-by:Sebastian Sebbie Silbermann <sebastian.silbermann@vercel.com>
-
Benjamin Woodruff authored
I can't reproduce it locally, but I've noticed this test flake a few times in CI. Use strongly consistent reads to hopefully fix that.
-
Luke Sandberg authored
`loadConfig` can get called multiple times in a build or dev session. in `dev` it gets called multiple times at the end of a session and of course whenever a session restarts in `build` it can get called multiple times due to build workers For that reason it needs to be idempotent, so change `withRspack` to detect if it has already run and short circuit. Otherwise it will always fail the second time complaining that you passed `--wepack` (because the first run deleted the TURBOPACK env var). See discussion: https://github.com/vercel/next.js/pull/84394#issuecomment-3364615461
-
Zack Tanner authored
With `clientSegmentCache` enabled, if you are already on a route that was intercepted/could have been intercepted, and then you navigated to it again, the router would get stuck in a state where it was infinitely suspended on data it would never receive. When no prefetch is available, we assume that the FlightRouterState sent by the server contains everything that is needed to describe the rendering shape of the page. However this isn't quite true: in `walk-tree-with-flight-router-state` (the function that populates prefetch responses), we skip sending down the `__DEFAULT__` segment. As a result, the client would get into a state where it thinks it needs to request data from the server. This updates the code to not special-case `__DEFAULT__` segments. We should separately see how we can restore this optimization to keep those payloads as small as possible, but it causes problems with back/forward nav that need to be investigated.
-
Luke Sandberg authored
Make Turbopack the default bundler for custom servers
🚀 In the same line as #84216 we want to ship turbopack by default, but now for programmatic usecases. ### What? Have the custom server entrypoint perform the same 'turbopack by default' logic as the main next entrypoints. This was a little tricky since next itself uses the custom server entrypoints. So i have adjusted this function to only perform the logic if it is a custom server since otherwise the next process already has the correct environment variables set Also deprecate the `turbo` property while we are there. -
Benjamin Woodruff authored
This is blocking the critical path for starting `next build` (on both webpack and Turbopack) and `next dev` (only on webpack). ## Testing Run ``` pnpm next build --turbopack --experimental-build-mode compile ``` a couple of times in `~/front/apps/conf-2025` (small-medium size app). ### Before  ### After 
-