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
001edfe4
Commit
001edfe4
authored
Feb 14, 2026
by
devjiwonchoi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address comment
parent
896a6c1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
resolve-build-paths.ts
packages/next/src/lib/resolve-build-paths.ts
+3
-1
debug-build-paths.test.ts
test/production/debug-build-path/debug-build-paths.test.ts
+6
-3
No files found.
packages/next/src/lib/resolve-build-paths.ts
View file @
001edfe4
...
...
@@ -83,7 +83,9 @@ export async function resolveBuildPaths(
throw
new
Error
(
`Pattern "
${
patterns
.
join
(
','
)}
" did not match any files`
)
}
Log
.
info
(
`Pattern "
${
patterns
.
join
(
','
)}
" did match
${
matches
.
length
}
files`
)
Log
.
info
(
`Pattern "
${
patterns
.
join
(
','
)}
" did match
${
matches
.
length
}
file(s)`
)
for
(
const
file
of
matches
)
{
if
(
!
fs
.
statSync
(
path
.
join
(
projectDir
,
file
)).
isDirectory
())
{
...
...
test/production/debug-build-path/debug-build-paths.test.ts
View file @
001edfe4
...
...
@@ -179,7 +179,8 @@ describe('debug-build-paths', () => {
expect
(
buildResult
.
cliOutput
).
toContain
(
'○ /about'
)
expect
(
buildResult
.
cliOutput
).
toContain
(
'○ /dashboard'
)
expect
(
buildResult
.
cliOutput
).
toContain
(
'/blog/[slug]'
)
expect
(
buildResult
.
cliOutput
).
not
.
toMatch
(
/
[
○ƒ
]
\/
with-type-error/
)
// Leading whitespace since the pattern "!app/with-type-error/**" is in cliOutput and fails the test.
expect
(
buildResult
.
cliOutput
).
not
.
toContain
(
' /with-type-error'
)
})
it
(
'should exclude dynamic route paths with negation'
,
async
()
=>
{
...
...
@@ -210,7 +211,8 @@ describe('debug-build-paths', () => {
expect
(
buildResult
.
cliOutput
).
toContain
(
'Route (app)'
)
expect
(
buildResult
.
cliOutput
).
toContain
(
'○ /'
)
expect
(
buildResult
.
cliOutput
).
toContain
(
'○ /about'
)
expect
(
buildResult
.
cliOutput
).
not
.
toMatch
(
/
[
○ƒ
]
\/
with-type-error/
)
// Leading whitespace since the pattern "!app/with-type-error/**" is in cliOutput and fails the test.
expect
(
buildResult
.
cliOutput
).
not
.
toContain
(
' /with-type-error'
)
expect
(
buildResult
.
cliOutput
).
not
.
toContain
(
'○ /dashboard'
)
})
...
...
@@ -225,7 +227,8 @@ describe('debug-build-paths', () => {
expect
(
buildResult
.
cliOutput
).
toContain
(
'○ /'
)
expect
(
buildResult
.
cliOutput
).
toContain
(
'○ /about'
)
expect
(
buildResult
.
cliOutput
).
toContain
(
'○ /foo'
)
expect
(
buildResult
.
cliOutput
).
not
.
toMatch
(
/
[
○ƒ
]
\/
with-type-error/
)
// Leading whitespace since the pattern "!app/with-type-error/**" is in cliOutput and fails the test.
expect
(
buildResult
.
cliOutput
).
not
.
toContain
(
' /with-type-error'
)
})
it
(
'should build routes inside route groups'
,
async
()
=>
{
...
...
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