diff --git a/packages/vue-app/template/server.js b/packages/vue-app/template/server.js index 27f89c6f59f2..f92ce4c7bc4c 100644 --- a/packages/vue-app/template/server.js +++ b/packages/vue-app/template/server.js @@ -58,7 +58,7 @@ const createNext = ssrContext => (opts) => { return } let fullPath = withQuery(opts.path, opts.query) - const $config = ssrContext.runtimeConfig || {} + const $config = ssrContext.nuxt.config || {} const routerBase = ($config._app && $config._app.basePath) || '<%= router.base %>' if (!fullPath.startsWith('http') && (routerBase !== '/' && !fullPath.startsWith(routerBase))) { fullPath = joinURL(routerBase, fullPath)