Skip to content

Commit

Permalink
fix(vue-app): use correct $config for finding basePath (#9706)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Aug 24, 2021
1 parent 0145578 commit 3c10f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-app/template/server.js
Expand Up @@ -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)
Expand Down

0 comments on commit 3c10f17

Please sign in to comment.