mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
fix: correct renderer.noSSR name
This commit is contained in:
parent
701190d796
commit
6990efc1bc
@ -117,8 +117,8 @@ export default class VueRenderer {
|
|||||||
// TODO: Enable baack when renderer initialzation was disabled for build only scripts
|
// TODO: Enable baack when renderer initialzation was disabled for build only scripts
|
||||||
// Currently this breaks normal nuxt build for first time
|
// Currently this breaks normal nuxt build for first time
|
||||||
// if (!this.context.options.dev) {
|
// if (!this.context.options.dev) {
|
||||||
// const invalidSSR = !this.NoSsr && key === 'serverBundle'
|
// const invalidSSR = !this.noSSR && key === 'serverBundle'
|
||||||
// const invalidSPA = this.NoSsr && key === 'spaTemplate'
|
// const invalidSPA = this.noSSR && key === 'spaTemplate'
|
||||||
// if (invalidSPA || invalidSSR) {
|
// if (invalidSPA || invalidSSR) {
|
||||||
// consola.fatal(`Could not load Nuxt renderer, make sure to build for production: builder.build() with dev option set to false.`)
|
// 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
|
return this.context.options.render.ssr === false
|
||||||
}
|
}
|
||||||
|
|
||||||
get isReady() {
|
get isReady() {
|
||||||
if (this.NoSsr) {
|
if (this.noSSR) {
|
||||||
return Boolean(this.context.resources.spaTemplate)
|
return Boolean(this.context.resources.spaTemplate)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -186,7 +186,7 @@ export default class VueRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Required for SPA rendering
|
// Required for SPA rendering
|
||||||
if (this.NoSsr) {
|
if (this.noSSR) {
|
||||||
return Boolean(this.context.resources.spaTemplate)
|
return Boolean(this.context.resources.spaTemplate)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -203,8 +203,8 @@ export default class VueRenderer {
|
|||||||
// Create Meta Renderer
|
// Create Meta Renderer
|
||||||
this.renderer.spa = new SPAMetaRenderer(this)
|
this.renderer.spa = new SPAMetaRenderer(this)
|
||||||
|
|
||||||
// Skip following steps if NoSsr mode
|
// Skip following steps if noSSR mode
|
||||||
if (this.NoSsr) {
|
if (this.noSSR) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -262,7 +262,7 @@ export default class VueRenderer {
|
|||||||
const spa = context.spa || (res && res.spa)
|
const spa = context.spa || (res && res.spa)
|
||||||
const ENV = this.context.options.env
|
const ENV = this.context.options.env
|
||||||
|
|
||||||
if (this.NoSsr || spa) {
|
if (this.noSSR || spa) {
|
||||||
const {
|
const {
|
||||||
HTML_ATTRS,
|
HTML_ATTRS,
|
||||||
BODY_ATTRS,
|
BODY_ATTRS,
|
||||||
|
Loading…
Reference in New Issue
Block a user