fix(vue-renderer): read target from class instead of serverContext (#7752)

This commit is contained in:
Timothy R. Chavez 2020-07-22 07:51:31 -05:00 committed by GitHub
parent b469f931f8
commit 2dc11a71dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,7 +276,7 @@ export default class VueRenderer {
// Add url to the renderContext
renderContext.url = url
// Add target to the renderContext
renderContext.target = this.serverContext.nuxt.options.target
renderContext.target = this.options.target
const { req = {}, res = {} } = renderContext