Commit ec83670c authored by Tim Neutkens's avatar Tim Neutkens Committed by Guillermo Rauch

Check if BUILD_ID is available before starting (#960)

* Check if BUILD_ID is available before starting

* Leave whitespace at end of file
parent efe0c7b4
...@@ -42,8 +42,8 @@ const dir = resolve(argv._[0] || '.') ...@@ -42,8 +42,8 @@ const dir = resolve(argv._[0] || '.')
const srv = new Server({ dir }) const srv = new Server({ dir })
if (!existsSync(resolve(dir, '.next'))) { if (!existsSync(resolve(dir, '.next', 'BUILD_ID'))) {
console.error(`> Could not find the '.next' directory! Try building your app with 'next build' before starting the server.`) console.error(`> Could not find a valid build in the '.next' directory! Try building your app with 'next build' before starting the server.`)
process.exit(1) process.exit(1)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment