mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 09:33:54 +00:00
add options.ssr
This allows setting custom vue renderer options. including: - shouldPreload(file, type) - runInNewContext - directives https://ssr.vuejs.org/en/api.html#renderer-options
This commit is contained in:
parent
87172100c7
commit
2e75f22a08
@ -486,10 +486,10 @@ function createRenderer (bundle, manifest) {
|
|||||||
maxAge: 1000 * 60 * 15
|
maxAge: 1000 * 60 * 15
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
this.renderer = createBundleRenderer(bundle, {
|
this.renderer = createBundleRenderer(bundle, Object.assign({
|
||||||
cache: cacheConfig,
|
cache: cacheConfig,
|
||||||
clientManifest: manifest
|
clientManifest: manifest
|
||||||
})
|
}, this.options.ssr))
|
||||||
this.renderToString = pify(this.renderer.renderToString)
|
this.renderToString = pify(this.renderer.renderToString)
|
||||||
this.renderToStream = this.renderer.renderToStream
|
this.renderToStream = this.renderer.renderToStream
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user