We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efe0c7b commit ec83670Copy full SHA for ec83670
bin/next-start
@@ -42,8 +42,8 @@ const dir = resolve(argv._[0] || '.')
42
43
const srv = new Server({ dir })
44
45
-if (!existsSync(resolve(dir, '.next'))) {
46
- console.error(`> Could not find the '.next' directory! Try building your app with 'next build' before starting the server.`)
+if (!existsSync(resolve(dir, '.next', 'BUILD_ID'))) {
+ console.error(`> Could not find a valid build in the '.next' directory! Try building your app with 'next build' before starting the server.`)
47
process.exit(1)
48
}
49
0 commit comments