Skip to content

Commit 727ded6

Browse files
docs: fix router base (robsontenorio#170)
Temporary workaround to solve router base issue.
1 parent 7b67bf5 commit 727ded6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/nuxt.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,16 @@ import theme from "@nuxt/content-theme-docs";
33
export default theme({
44
router: {
55
base: '/vue-api-query/'
6+
},
7+
/**
8+
* Workaround to fix router base issue.
9+
*
10+
* See https://github.com/robsontenorio/vue-api-query/issues/165
11+
* See https://github.com/nuxt/content/issues/376#issuecomment-702193217
12+
*/
13+
hooks: {
14+
'vue-renderer:ssr:templateParams': function(params) {
15+
params.HEAD = params.HEAD.replace('<base href="/vue-api-query/">', '')
16+
}
617
}
718
})

0 commit comments

Comments
 (0)