Skip to content

Commit fdd36a5

Browse files
committed
Remove buildId generation.
1 parent e1d2ad0 commit fdd36a5

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

bin/next-start

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const dir = resolve(argv._[0] || '.')
4848

4949
const srv = new Server({ dir })
5050

51-
if (!existsSync(resolve(dir, '.next', 'BUILD_ID'))) {
51+
if (!existsSync(resolve(dir, '.next', 'build-stats.json'))) {
5252
console.error(`> Could not find a valid build in the '.next' directory! Try building your app with 'next build' before starting the server.`)
5353
process.exit(1)
5454
}

server/build/index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export default async function build (dir) {
1313
try {
1414
const webpackStats = await runCompiler(compiler)
1515
await writeBuildStats(buildDir, webpackStats)
16-
await writeBuildId(buildDir)
1716
} catch (err) {
1817
console.error(`> Failed to build on ${buildDir}`)
1918
throw err
@@ -56,9 +55,3 @@ async function writeBuildStats (dir, webpackStats) {
5655
const buildStatsPath = join(dir, '.next', 'build-stats.json')
5756
await fs.writeFile(buildStatsPath, JSON.stringify(chunkHashMap), 'utf8')
5857
}
59-
60-
async function writeBuildId (dir) {
61-
const buildIdPath = join(dir, '.next', 'BUILD_ID')
62-
const buildId = uuid.v4()
63-
await fs.writeFile(buildIdPath, buildId, 'utf8')
64-
}

0 commit comments

Comments
 (0)