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
96bfd47a
Commit
96bfd47a
authored
Jan 27, 2026
by
Niklas Mischkulnig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove __NEXT_BUILD_ID for edge functions
parent
edc8b9d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
project.rs
crates/next-api/src/project.rs
+8
-4
next_config.rs
crates/next-core/src/next_config.rs
+5
-0
No files found.
crates/next-api/src/project.rs
View file @
96bfd47a
...
...
@@ -1350,15 +1350,19 @@ impl Project {
}
#[turbo_tasks
::
function]
pub
(
super
)
fn
edge_env
(
&
self
)
->
Vc
<
EnvMap
>
{
let
edge_env
=
fxindexmap!
{
rcstr!
(
"__NEXT_BUILD_ID"
)
=>
self
.build_id
.clone
(),
pub
(
super
)
async
fn
edge_env
(
&
self
)
->
Result
<
Vc
<
EnvMap
>>
{
let
mut
edge_env
=
fxindexmap!
{
rcstr!
(
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY"
)
=>
self
.encryption_key
.clone
(),
rcstr!
(
"__NEXT_PREVIEW_MODE_ID"
)
=>
self
.preview_props.preview_mode_id
.clone
(),
rcstr!
(
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY"
)
=>
self
.preview_props.preview_mode_encryption_key
.clone
(),
rcstr!
(
"__NEXT_PREVIEW_MODE_SIGNING_KEY"
)
=>
self
.preview_props.preview_mode_signing_key
.clone
(),
};
Vc
::
cell
(
edge_env
)
if
!*
self
.next_config
.has_deployment_id
()
.await
?
{
// The build id is only needed at runtime when there is no deployment id.
edge_env
.insert
(
rcstr!
(
"__NEXT_BUILD_ID"
),
self
.build_id
.clone
());
}
Ok
(
Vc
::
cell
(
edge_env
))
}
#[turbo_tasks
::
function]
...
...
crates/next-core/src/next_config.rs
View file @
96bfd47a
...
...
@@ -1874,6 +1874,11 @@ impl NextConfig {
)
}
#[turbo_tasks
::
function]
pub
fn
has_deployment_id
(
&
self
)
->
Vc
<
bool
>
{
Vc
::
cell
(
self
.deployment_id
.is_some
())
}
#[turbo_tasks
::
function]
pub
fn
cache_kinds
(
&
self
)
->
Vc
<
CacheKinds
>
{
let
mut
cache_kinds
=
CacheKinds
::
default
();
...
...
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