Skip to content

Commit ec83670

Browse files
timneutkensrauchg
authored andcommitted
Check if BUILD_ID is available before starting (vercel#960)
* Check if BUILD_ID is available before starting * Leave whitespace at end of file
1 parent efe0c7b commit ec83670

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/next-start

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ const dir = resolve(argv._[0] || '.')
4242

4343
const srv = new Server({ dir })
4444

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.`)
45+
if (!existsSync(resolve(dir, '.next', 'BUILD_ID'))) {
46+
console.error(`> Could not find a valid build in the '.next' directory! Try building your app with 'next build' before starting the server.`)
4747
process.exit(1)
4848
}
4949

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy