Repository navigation
Add the experimental.devValidationWorker config flag - #96150
Merged
timneutkens merged 1 commit intoJul 25, 2026
Merged
timneutkens merged 1 commit into
timneutkens merged 1 commit into
Conversation
Contributor
Stats from current PR🔴 1 regression
📊 All Metrics📖 Metrics GlossaryDev Server Metrics:
Build Metrics:
Change Thresholds:
⚡ Dev Server
📦 Dev Server (Webpack) (Legacy)📦 Dev Server (Webpack)
⚡ Production Builds
📦 Production Builds (Webpack) (Legacy)📦 Production Builds (Webpack)
📦 Bundle SizesBundle Sizes⚡ TurbopackClient Main Bundles
Server Middleware
Build DetailsBuild Manifests
📦 WebpackClient Main Bundles
Polyfills
Pages
Server Edge SSR
Middleware
Build DetailsBuild Manifests
Build Cache
🔄 Shared (bundler-independent)Runtimes
📝 Changed Files (5 files)Files with changes:
View diffsapp-page-exp..ntime.dev.jsDiff too large to display app-page-tur..ntime.dev.jsDiff too large to display app-page-tur..ntime.dev.jsDiff too large to display app-page.runtime.dev.jsDiff too large to display server.runtime.prod.jsDiff too large to display 📎 Tarball URLCommit: 53ef370 |
Contributor
Tests PassedCommit: 53ef370 |
unstubbable
marked this pull request as ready for review
July 24, 2026 15:53
This adds the `experimental.devValidationWorker` boolean option: its type in `config-shared.ts` and its schema entry in `config-schema.ts`. The flag is the configuration seam for running development Cache Components validation on a worker thread rather than the dev server's main thread, which keeps the event loop responsive during rapid navigation. It is enabled by default, and setting it to `false` runs validation in-process, as an escape hatch to isolate a problem or fall back if the worker misbehaves. We land the flag on its own, ahead of the preparatory refactor, the benchmark, and the worker implementation that follow in the stack, so those changes can reference and toggle it. On its own the option is recognized by config validation but is not yet read anywhere. Because the flag is consumed only server-side in `next dev`, it needs no `define-env.ts` wiring for user-bundled code, nor `renderOpts` plumbing.
unstubbable
force-pushed
the
hl/dev-validation-worker-flag
branch
from
July 24, 2026 20:53
5d0a723 to
53ef370
Compare
timneutkens
approved these changes
Jul 25, 2026
m-kawafuji
pushed a commit
to m-kawafuji/next.js
that referenced
this pull request
Aug 8, 2026
This adds the `experimental.devValidationWorker` boolean option: its type in `config-shared.ts` and its schema entry in `config-schema.ts`. The flag is the configuration seam for running development Cache Components validation on a worker thread rather than the dev server's main thread, which keeps the event loop responsive during rapid navigation. It is enabled by default, and setting it to `false` runs validation in-process, as an escape hatch to isolate a problem or fall back if the worker misbehaves. We land the flag on its own, ahead of the preparatory refactor, the benchmark, and the worker implementation that follow in the stack, so those changes can reference and toggle it. On its own the option is recognized by config validation but is not yet read anywhere. Because the flag is consumed only server-side in `next dev`, it needs no `define-env.ts` wiring for user-bundled code, nor `renderOpts` plumbing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the
experimental.devValidationWorkerboolean option: its type inconfig-shared.tsand its schema entry inconfig-schema.ts. The flag is the configuration seam for running development Cache Components validation on a worker thread rather than the dev server's main thread, which keeps the event loop responsive during rapid navigation. It is enabled by default, and setting it tofalseruns validation in-process, as an escape hatch to isolate a problem or fall back if the worker misbehaves.We land the flag on its own, ahead of the preparatory refactor, the benchmark, and the worker implementation that follow in the stack, so those changes can reference and toggle it. On its own the option is recognized by config validation but is not yet read anywhere. Because the flag is consumed only server-side in
next dev, it needs nodefine-env.tswiring for user-bundled code, norrenderOptsplumbing.