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
38f4304c
Unverified
Commit
38f4304c
authored
Jan 19, 2026
by
Niklas Mischkulnig
Committed by
GitHub
Jan 19, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only filter next config if experimental flag is enabled (#88733)
parent
b46d599b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
index.ts
packages/next/src/build/index.ts
+6
-2
config-shared.ts
packages/next/src/server/config-shared.ts
+5
-0
No files found.
packages/next/src/build/index.ts
View file @
38f4304c
...
...
@@ -1904,11 +1904,15 @@ export default async function build(
}
}
// getNextConfigRuntime only filters if experimental.runtimeServerDeploymentId is true,
// but we unconditionally want to remove configFile for this manifest
let
runtimeConfigWithoutFilePath
=
{
...
runtimeConfig
}
delete
(
runtimeConfigWithoutFilePath
as
NextConfigComplete
).
configFile
const
serverFilesManifest
:
RequiredServerFilesManifest
=
{
version
:
1
,
config
:
{
...
runtimeConfig
,
...
runtimeConfigWithoutFilePath
,
...(
ciEnvironment
.
hasNextSupport
?
{
compress
:
false
,
...
...
packages/next/src/server/config-shared.ts
View file @
38f4304c
...
...
@@ -1705,6 +1705,11 @@ export interface NextConfigRuntime {
export
function
getNextConfigRuntime
(
config
:
NextConfigComplete
|
NextConfigRuntime
):
NextConfigRuntime
{
// This config filter is a breaking change, so only do it if experimental.runtimeServerDeploymentId is enabled
if
(
!
config
.
experimental
.
runtimeServerDeploymentId
)
{
return
config
}
let
ex
=
config
.
experimental
type
Requiredish
<
T
>
=
{
...
...
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