mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-26 21:32:42 +00:00
fix(nuxt-start): build detection
spa builds has no ssr json file
This commit is contained in:
parent
ad4c865957
commit
60b28e887f
@ -61,7 +61,7 @@ options.dev = false
|
||||
|
||||
// Check if project is built for production
|
||||
const distDir = join(options.rootDir, options.buildDir || '.nuxt', 'dist')
|
||||
if (!fs.existsSync(join(distDir, 'server-bundle.json'))) {
|
||||
if (!fs.existsSync(distDir)) {
|
||||
console.error('> No build files found, please run `nuxt build` before launching `nuxt start`') // eslint-disable-line no-console
|
||||
process.exit(1)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user