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
1818b104
Unverified
Commit
1818b104
authored
Jan 21, 2026
by
Niklas Mischkulnig
Committed by
GitHub
Jan 21, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update deterministic-build assertion (#88820)
parent
ca37db9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
deployment-id.test.ts
test/production/deterministic-build/deployment-id.test.ts
+1
-16
No files found.
test/production/deterministic-build/deployment-id.test.ts
View file @
1818b104
...
...
@@ -27,30 +27,18 @@ async function readFiles(next: NextInstance) {
)
}
// TODO static/* browser chunks are content hashed and have the deployment id inlined
const
IGNORE_NAME
=
/^static
\/
chunks
\/
/
const
IGNORE_CONTENT
=
new
RegExp
(
[
// TODO These contain content-hashed browser chunk urls (and/or the deployment id query param)
'page_client-reference-manifest
\\
.js'
,
'build-manifest
\\
.json'
,
// TODO This contains
// - content-hashed browser chunk urls (and/or the deployment id query param)
// - browser chunk urls inside of a folder named after the build id
'middleware-build-manifest
\\
.js'
,
// TODO this contains "env": { "__NEXT_BUILD_ID": "taBOOu8Znzobe4G7wEG_i",
'middleware-manifest
\\
.json'
,
// TODO this contains the build id
'BUILD_ID'
,
// TODO this contains the build id: "/pages-static-gsp": { "dataRoute": "/_next/data/V7oVUAlS1LiV5CqrtpkAL/pages-static-gsp.json",
'prerender-manifest
\\
.json'
,
// TODO These contain (but are not deployed to the serverless function itself)
// - content-hashed browser chunk urls
// - the build id
// TODO These contain the build id (but are not deployed to the serverless function itself)
'.*
\\
.html'
,
'.*
\\
.rsc'
,
// These are not critical, as they aren't deployed to the serverless function itself
'_buildManifest
\\
.js'
,
'client-build-manifest
\\
.json'
,
'fallback-build-manifest
\\
.json'
,
'routes-manifest
\\
.json'
,
...
...
@@ -98,9 +86,6 @@ const IGNORE_CONTENT = new RegExp(
await
next
.
build
()
let
run2
=
await
readFiles
(
next
)
run1
=
run1
.
filter
(([
f
,
_
])
=>
!
IGNORE_NAME
.
test
(
f
))
run2
=
run2
.
filter
(([
f
,
_
])
=>
!
IGNORE_NAME
.
test
(
f
))
// First, compare file names
let
run1FileNames
=
run1
.
map
(([
f
,
_
])
=>
f
)
let
run2FileNames
=
run2
.
map
(([
f
,
_
])
=>
f
)
...
...
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