Skip to content

Commit

Permalink
fix: append base URL when pages are not used
Browse files Browse the repository at this point in the history
Fixes #255
  • Loading branch information
harlan-zw committed Jul 1, 2024
1 parent 8dfadc8 commit c6fa023
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,9 @@ declare module 'vue-router' {
exclude: normalizeFilters(config.exclude),
},
})
if (!pageSource.length) {
pageSource.push(nuxt.options.app.baseURL || '/')
}
if (!resolvedConfigUrls) {
config.urls && userGlobalSources.push({
context: {
Expand Down

0 comments on commit c6fa023

Please sign in to comment.