Skip to content

Commit fc99d59

Browse files
committed
feat($core): allow dynamic routeBase at runtime
Setting it via window.__VUEPRESS_ROUTE_BASE__ at enhance app file.
1 parent 699492a commit fc99d59

File tree

1 file changed

+1
-1
lines changed
  • packages/@vuepress/core/lib/client

1 file changed

+1
-1
lines changed

packages/@vuepress/core/lib/client/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Vue.prototype.$withBase = function (path) {
6262

6363
export function createApp (isServer) {
6464
const router = new Router({
65-
base: siteData.base,
65+
base: window.__VUEPRESS_ROUTE_BASE__ || siteData.base,
6666
mode: 'history',
6767
fallback: false,
6868
routes,

0 commit comments

Comments
 (0)