Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
2317b28d
Unverified
Commit
2317b28d
authored
Aug 07, 2026
by
Sam Poder
Committed by
GitHub
Aug 07, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[turbopack] Enable the shared runtime by default (#96778)
16.3 is out so we will test this in canary!
parent
27c9680c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
next_config.rs
crates/next-core/src/next_config.rs
+1
-1
define-env.ts
packages/next/src/build/define-env.ts
+2
-3
config-shared.ts
packages/next/src/server/config-shared.ts
+1
-1
No files found.
crates/next-core/src/next_config.rs
View file @
2317b28d
...
@@ -2558,7 +2558,7 @@ impl NextConfig {
...
@@ -2558,7 +2558,7 @@ impl NextConfig {
// The shared runtime / inlined bootstrap is a production-only optimization; in
// The shared runtime / inlined bootstrap is a production-only optimization; in
// development the per-route runtime is required for HMR.
// development the per-route runtime is required for HMR.
NextMode
::
Development
=>
false
,
NextMode
::
Development
=>
false
,
NextMode
::
Build
=>
self
.experimental.turbopack_shared_runtime
.unwrap_or
(
fals
e
),
NextMode
::
Build
=>
self
.experimental.turbopack_shared_runtime
.unwrap_or
(
tru
e
),
}))
}))
}
}
...
...
packages/next/src/build/define-env.ts
View file @
2317b28d
...
@@ -171,9 +171,8 @@ export function getDefineEnv({
...
@@ -171,9 +171,8 @@ export function getDefineEnv({
'process.env.__NEXT_APP_NAV_FAIL_HANDLING'
:
Boolean
(
'process.env.__NEXT_APP_NAV_FAIL_HANDLING'
:
Boolean
(
config
.
experimental
.
appNavFailHandling
config
.
experimental
.
appNavFailHandling
),
),
'process.env.__NEXT_TURBOPACK_SHARED_RUNTIME'
:
Boolean
(
'process.env.__NEXT_TURBOPACK_SHARED_RUNTIME'
:
config
.
experimental
.
turbopackSharedRuntime
config
.
experimental
.
turbopackSharedRuntime
!==
false
,
),
'process.env.__NEXT_PPR'
:
isPPREnabled
,
'process.env.__NEXT_PPR'
:
isPPREnabled
,
'process.env.__NEXT_CACHE_COMPONENTS'
:
isCacheComponentsEnabled
,
'process.env.__NEXT_CACHE_COMPONENTS'
:
isCacheComponentsEnabled
,
'process.env.__NEXT_EXPERIMENTAL_CACHED_NAVIGATIONS'
:
Boolean
(
'process.env.__NEXT_EXPERIMENTAL_CACHED_NAVIGATIONS'
:
Boolean
(
...
...
packages/next/src/server/config-shared.ts
View file @
2317b28d
...
@@ -785,7 +785,7 @@ export interface ExperimentalConfig {
...
@@ -785,7 +785,7 @@ export interface ExperimentalConfig {
/**
/**
* Share the browser runtime across routes in a single `runtime.js` asset and inline the
* Share the browser runtime across routes in a single `runtime.js` asset and inline the
* per-route chunk-group bootstrap into the HTML, dropping the per-route runtime. Defaults to
* per-route chunk-group bootstrap into the HTML, dropping the per-route runtime. Defaults to
*
fals
e. Only applies to production builds; has no effect in development mode.
*
tru
e. Only applies to production builds; has no effect in development mode.
*/
*/
turbopackSharedRuntime
?:
boolean
turbopackSharedRuntime
?:
boolean
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment