Skip to content

Commit 9f117e3

Browse files
committed
add comments
1 parent d347348 commit 9f117e3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/next/src/server-build.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2370,6 +2370,9 @@ export async function serverBuild({
23702370
src: path.posix.join(
23712371
'/',
23722372
entryDirectory,
2373+
// if entryDirectory is populated we need to
2374+
// add optional handling for trailing slash so
2375+
// that the entryDirectory (basePath) itself matches
23732376
`${entryDirectory !== '.' ? '?' : ''}.*`
23742377
),
23752378
dest: path.posix.join(
@@ -2419,6 +2422,9 @@ export async function serverBuild({
24192422
src: path.posix.join(
24202423
'/',
24212424
entryDirectory,
2425+
// if entryDirectory is populated we need to
2426+
// add optional handling for trailing slash so
2427+
// that the entryDirectory (basePath) itself matches
24222428
`${entryDirectory !== '.' ? '?' : ''}.*`
24232429
),
24242430
dest: path.posix.join(

0 commit comments

Comments
 (0)