Permalink
Browse files

fix: Fix error undefined on plugins errors

  • Loading branch information...
Atinux committed Jan 23, 2018
1 parent a6caff9 commit 00f98c150fe03b707bcc5949e66152a5b69dd234
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/app/server.js
View
@@ -47,13 +47,12 @@ export default async ssrContext => {
ssrContext.next = createNext(ssrContext)
// Used for beforeNuxtRender({ Components, nuxtState })
ssrContext.beforeRenderFns = []
// Nuxt object (window.__NUXT__)
ssrContext.nuxt = { layout: 'default', data: [], error: null<%= (store ? ', state: null' : '') %>, serverRendered: true }
// Create the app definition and the instance (created for each request)
const { app, router<%= (store ? ', store' : '') %> } = await createApp(ssrContext)
const _app = new Vue(app)
// Nuxt object (window.__NUXT__)
ssrContext.nuxt = { layout: 'default', data: [], error: null<%= (store ? ', state: null' : '') %>, serverRendered: true }
// Add meta infos (used in renderer.js)
ssrContext.meta = _app.$meta()
// Keep asyncData for each matched component in ssrContext (used in app/utils.js via this.$ssrContext)

0 comments on commit 00f98c1

Please sign in to comment.