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

Function getBuildId

test/integration/prerender-preview/test/index.test.ts:21–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19const appDir = join(__dirname, '..')
20
21async function getBuildId() {
22 return fs.readFile(join(appDir, '.next', 'BUILD_ID'), 'utf8')
23}
24
25function getData(html) {
26 const $ = cheerio.load(html)

Callers 1

runTestsFunction · 0.70

Calls 2

joinFunction · 0.90
readFileMethod · 0.45

Tested by

no test coverage detected