diff --git a/packages/vue-renderer/src/renderer.js b/packages/vue-renderer/src/renderer.js index 7207b94b66..e0f7b8c8c9 100644 --- a/packages/vue-renderer/src/renderer.js +++ b/packages/vue-renderer/src/renderer.js @@ -117,8 +117,8 @@ export default class VueRenderer { // TODO: Enable baack when renderer initialzation was disabled for build only scripts // Currently this breaks normal nuxt build for first time // if (!this.context.options.dev) { - // const invalidSSR = !this.NoSsr && key === 'serverBundle' - // const invalidSPA = this.NoSsr && key === 'spaTemplate' + // const invalidSSR = !this.noSSR && key === 'serverBundle' + // const invalidSPA = this.noSSR && key === 'spaTemplate' // if (invalidSPA || invalidSSR) { // consola.fatal(`Could not load Nuxt renderer, make sure to build for production: builder.build() with dev option set to false.`) // } @@ -166,12 +166,12 @@ export default class VueRenderer { } } - get NoSsr() { + get noSSR() { return this.context.options.render.ssr === false } get isReady() { - if (this.NoSsr) { + if (this.noSSR) { return Boolean(this.context.resources.spaTemplate) } @@ -186,7 +186,7 @@ export default class VueRenderer { } // Required for SPA rendering - if (this.NoSsr) { + if (this.noSSR) { return Boolean(this.context.resources.spaTemplate) } @@ -203,8 +203,8 @@ export default class VueRenderer { // Create Meta Renderer this.renderer.spa = new SPAMetaRenderer(this) - // Skip following steps if NoSsr mode - if (this.NoSsr) { + // Skip following steps if noSSR mode + if (this.noSSR) { return } @@ -262,7 +262,7 @@ export default class VueRenderer { const spa = context.spa || (res && res.spa) const ENV = this.context.options.env - if (this.NoSsr || spa) { + if (this.noSSR || spa) { const { HTML_ATTRS, BODY_ATTRS,