Skip to content

Commit e166abe

Browse files
committed
update comment
1 parent 842ca1a commit e166abe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/next/src/build/entries.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ export async function collectAppFiles(
114114
const appPaths = []
115115
const layoutPaths = []
116116
const defaultPaths = []
117-
// requestPath => relativePath
117+
// Map of "requestPath" => "relativePath".
118+
// "requestPath" will be used for the output path "{distDir}/static/metadata/{requestPath}" and
119+
// its matcher. When the request comes in, the filesystem handler will look for the output path
120+
// and serve the file if exists. "relativePath" will be used to copy the file to the output path.
118121
const staticMetadataFiles = new Map<string, string>()
119122

120123
for (const relativePath of allAppFiles) {

0 commit comments

Comments
 (0)