File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const dir = resolve(argv._[0] || '.')
48
48
49
49
const srv = new Server ( { dir } )
50
50
51
- if ( ! existsSync ( resolve ( dir , '.next' , 'BUILD_ID ' ) ) ) {
51
+ if ( ! existsSync ( resolve ( dir , '.next' , 'build-stats.json ' ) ) ) {
52
52
console . error ( `> Could not find a valid build in the '.next' directory! Try building your app with 'next build' before starting the server.` )
53
53
process . exit ( 1 )
54
54
}
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ export default async function build (dir) {
13
13
try {
14
14
const webpackStats = await runCompiler ( compiler )
15
15
await writeBuildStats ( buildDir , webpackStats )
16
- await writeBuildId ( buildDir )
17
16
} catch ( err ) {
18
17
console . error ( `> Failed to build on ${ buildDir } ` )
19
18
throw err
@@ -56,9 +55,3 @@ async function writeBuildStats (dir, webpackStats) {
56
55
const buildStatsPath = join ( dir , '.next' , 'build-stats.json' )
57
56
await fs . writeFile ( buildStatsPath , JSON . stringify ( chunkHashMap ) , 'utf8' )
58
57
}
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
- }
You can’t perform that action at this time.
0 commit comments