From d9a01c25f16c6759a4e96db5e8a90b62ea19b561 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 20 Jun 2017 01:33:55 +0430 Subject: [PATCH] deprecated options.build.ssr --- lib/core/renderer.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/core/renderer.js b/lib/core/renderer.js index a04fe58f0b..8fce6fb271 100644 --- a/lib/core/renderer.js +++ b/lib/core/renderer.js @@ -149,7 +149,11 @@ export default class Renderer extends Tapable { clientManifest: this.resources.clientManifest, runInNewContext: false, basedir: this.options.rootDir - }, this.options.render.ssr)) + }, this.options.render.ssr, this.options.build.ssr)) + + if(this.options.build.ssr) { + console.warn('[nuxt] `build.ssr` is deprecated and will be removed in 1.0 release, please use `renderer.ssr` instead!') + } // Promisify renderToString this.bundleRenderer.renderToString = pify(this.bundleRenderer.renderToString)