From 60b28e887fb7da51be1f7f4b26771d3a51d14720 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sat, 5 Aug 2017 16:15:31 +0430 Subject: [PATCH] fix(nuxt-start): build detection spa builds has no ssr json file --- bin/nuxt-start | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/nuxt-start b/bin/nuxt-start index 5e40ebd201..5921404424 100755 --- a/bin/nuxt-start +++ b/bin/nuxt-start @@ -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) }