No need to check on render anymore

This commit is contained in:
Sébastien Chopin 2017-06-11 15:49:19 +02:00
parent 84e5eabd99
commit 2926b08344

View File

@ -14,11 +14,6 @@ setAnsiColors(ansiHTML)
export async function render (req, res) {
// Wait for nuxt.js to be ready
await this.ready()
// Check if project is built for production
if (!this.renderer && !this.dev) {
console.error('> No build files found, please run `nuxt build` before launching `nuxt start`') // eslint-disable-line no-console
process.exit(1)
}
/* istanbul ignore if */
if (!this.renderer || !this.appTemplate) {
return new Promise((resolve) => {