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
3c3c7206
Commit
3c3c7206
authored
Jan 27, 2026
by
Brooke Mosby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing error
parent
d5a88ba4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
config.ts
packages/next/src/server/config.ts
+3
-10
No files found.
packages/next/src/server/config.ts
View file @
3c3c7206
...
@@ -961,19 +961,12 @@ function assignDefaultsAndValidate(
...
@@ -961,19 +961,12 @@ function assignDefaultsAndValidate(
ciEnvironment
.
hasNextSupport
&&
ciEnvironment
.
hasNextSupport
&&
process
.
env
.
NEXT_DEPLOYMENT_ID
process
.
env
.
NEXT_DEPLOYMENT_ID
)
{
)
{
if
(
result
.
deploymentId
!=
null
&&
result
.
deploymentId
!==
process
.
env
.
NEXT_DEPLOYMENT_ID
)
{
throw
new
Error
(
`The NEXT_DEPLOYMENT_ID environment variable value "
${
process
.
env
.
NEXT_DEPLOYMENT_ID
}
" does not match the provided deploymentId "
${
result
.
deploymentId
}
" in the config.`
)
}
result
.
experimental
.
runtimeServerDeploymentId
=
true
result
.
experimental
.
runtimeServerDeploymentId
=
true
}
}
// only leverage deploymentId
// User-configured deploymentId takes precedence over NEXT_DEPLOYMENT_ID env var
if
(
process
.
env
.
NEXT_DEPLOYMENT_ID
)
{
// This allows users to set a custom deployment ID for skew protection
if
(
!
result
.
deploymentId
&&
process
.
env
.
NEXT_DEPLOYMENT_ID
)
{
result
.
deploymentId
=
process
.
env
.
NEXT_DEPLOYMENT_ID
result
.
deploymentId
=
process
.
env
.
NEXT_DEPLOYMENT_ID
}
}
...
...
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