diff --git a/lib/app/index.js b/lib/app/index.js index fe30f2e479..8461b512ce 100644 --- a/lib/app/index.js +++ b/lib/app/index.js @@ -44,11 +44,7 @@ const defaultTransition = <%= %> async function createApp (ssrContext) { - if (createRouter.constructor.name === 'AsyncFunction') { - const router = await createRouter(ssrContext) - } else { - const router = createRouter(ssrContext) - } + const router = await createRouter(ssrContext) <% if (store) { %> const store = createStore(ssrContext)