MCPcopy
hub / github.com/vercel/next.js / readNextBuildServerPageFile

Function readNextBuildServerPageFile

test/lib/next-test-utils.ts:1355–1361  ·  view source on GitHub ↗
(appDir: string, page: string)

Source from the content-addressed store, hash-verified

1353}
1354
1355export function readNextBuildServerPageFile(appDir: string, page: string) {
1356 const pageFile = getPageFileFromPagesManifest(appDir, page)
1357 return readFileSync(
1358 path.join(appDir, getDistDir(), 'server', pageFile),
1359 'utf8'
1360 )
1361}
1362
1363export function getClientBuildManifest(dir: string) {
1364 let buildId = readFileSync(path.join(dir, getDistDir(), 'BUILD_ID'), 'utf8')

Callers 1

index.test.tsFile · 0.90

Calls 4

readFileSyncFunction · 0.85
getDistDirFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected