\n\u003Cimg width=\"1890\" height=\"470\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/1b63e5fd-3d4d-4c14-8861-271409800222\" />\n\u003Cimg width=\"1420\" height=\"215\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/1d036d80-1d0f-445e-a799-9763e9b5580e\" />\n\n\n\n### Reproduction\n\nno\n\n### Expected behavior\n\nCan add public path normally\n\n### System Info\n\n```Text\nwindows11 ,chrome latest\n```\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [x] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [x] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [x] Read the [docs](https://vitepress.dev).\n- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3192],{"name":3193,"color":3194},"need more info","bdbefc",4886,"Document deployment does not support the base option (public path) of the VitePress configuration.?","2025-08-06T06:36:15Z","https://github.com/vuejs/vitepress/issues/4886",0.66740805,{"description":3201,"labels":3202,"number":3203,"owner":3149,"repository":3150,"state":3151,"title":3204,"updated_at":3205,"url":3206,"score":3207},"In Vitepress (vuejs/vitepress), the page HTML base path (`site.base`) and the static assets base path (`vite config.base`, equivalent to `publicPath` in webpack) are not handled separately. This causes issues when deploying the HTML and CDN separately (with the HTML being served from a dedicated domain and the CDN deployed on a general CDN service). The built pages cannot navigate correctly or the static assets fail to load properly.\r\n\r\nThe current code handling both `site.base` and `vite.config.base` consistently can be found at the following link:\r\n\r\nhttps://github.com/vuejs/vitepress/blob/b16340acbd3c60fee023daadb0ec5a0292060a1e/src/node/build/bundle.ts#L60\r\n\r\nIt would be beneficial to separate the handling of these two base paths to better support different deployment scenarios.",[],2144," Separate handling of page HTML base path and static assets base path in Vitepress","2023-04-04T00:03:58Z","https://github.com/vuejs/vitepress/issues/2144",0.6810185,{"description":3209,"labels":3210,"number":3211,"owner":3149,"repository":3150,"state":3151,"title":3212,"updated_at":3213,"url":3214,"score":3215},"### Discussed in https://github.com/vuejs/vitepress/discussions/609\r\n\r\n\u003Cdiv type='discussions-op-text'>\r\n\r\n\u003Csup>Originally posted by **Roman-00** April 25, 2022\u003C/sup>\r\nWhen hosting, I have already brought down this project for hosting in a subdirectory https://domain.com/ms/guide , can't get to js files and styles, writes 404. How can I specify the path to styles and js files when building\r\n\r\n\r\nCan I somehow register the path to the files myself within vitepress?\u003C/div>",[],610,"When hosting, I have already brought down this project for hosting in a subdirectory https://domain.com/ms/guide , can't get to js files and styles, writes 404","2023-01-21T16:04:28Z","https://github.com/vuejs/vitepress/issues/610",0.6826379,{"description":3217,"labels":3218,"number":3222,"owner":3149,"repository":3150,"state":3151,"title":3223,"updated_at":3224,"url":3225,"score":3226},"### Describe the bug\n\nIf you configure the base config property, it somewhat works on dev. The way it appears to work is that it navigates to the requested page, but proceeds to redirect you to the true page directly after. \r\n\r\nIf this is how it works on dev, it isn't really a foolproof solution. \r\n\r\nThe issue mainly is that on a built copy, this method doesn't work at all. Even if you have a base config property, it doesn't redirect you. \r\n\r\nKeep in mind that I'm using these links in _layout.vue_ which may be different in an md file. \n\n### Reproduction\n\nCreate an app, \r\nconfigure the base\r\nGo to layout\r\nCreate some links, say, to /about\r\nTry to navigate on dev, seemingly goes to /about then redirects to /${base}/about\r\n- works\r\nBuild the project\r\nPreview\r\nTry to navigate to /about\r\n- does not work -> goes directly to /about and not /`${base}/about\n\n### Expected behavior\n\nIt would be nice if Vitepress was smart enough to compile all the links with the base property. Like I've said, it seems that the method is redirection, but perhaps I'm confused. \n\n### System Info\n\n```sh\nSystem:\r\n OS: Linux 6.2 Pop!_OS 22.04 LTS\r\n CPU: (12) x64 AMD Ryzen 5 3600X 6-Core Processor\r\n Memory: 7.46 GB / 15.53 GB\r\n Container: Yes\r\n Shell: 5.1.16 - /bin/bash\r\n Binaries:\r\n Node: 18.16.0 - /run/user/1000/fnm_multishells/11424_1683296095333/bin/node\r\n npm: 9.5.1 - /run/user/1000/fnm_multishells/11424_1683296095333/bin/npm\r\n Browsers:\r\n Firefox: 112.0.2\r\n npmPackages:\r\n vitepress: 1.0.0-alpha.75 => 1.0.0-alpha.75\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3219],{"name":3220,"color":3221},"docs","0075ca",2339,"Config 'base' option works on dev, but doesn't quite work on build","2023-06-03T00:03:55Z","https://github.com/vuejs/vitepress/issues/2339",0.6864835,{"description":3228,"labels":3229,"number":285,"owner":3149,"repository":3150,"state":3151,"title":3230,"updated_at":3231,"url":3232,"score":3233},"Following the steps from `README.md`\r\n\r\n```sh\r\n~/development/playground/vitepress_test\r\n❯ echo '# Hello VitePress' > index.md\r\n\r\n~/development/playground/vitepress_test\r\n❯ npx vitepress\r\nvitepress v0.2.0\r\nvite v0.16.7\r\nlistening at http://localhost:3000\r\n\r\n Error: ENOENT: no such file or directory, stat '/Users/ziga/.npm/_npx/21240/lib/node_modules/vitepress/dist/client/app/index.html'\r\n at Object.statSync (fs.js:1035:3)\r\n at Object.statSync (/Users/ziga/.npm/_npx/21240/lib/node_modules/vitepress/node_modules/graceful-fs/polyfills.js:308:16)\r\n at Object.cachedRead (/Users/ziga/.npm/_npx/21240/lib/node_modules/vitepress/node_modules/vite/dist/utils/fsUtils.js:20:45)\r\n at /Users/ziga/.npm/_npx/21240/lib/node_modules/vitepress/dist/node/server.js:98:30\r\n at async /Users/ziga/.npm/_npx/21240/lib/node_modules/vitepress/node_modules/vite/dist/server/serverPluginHtml.js:51:9\r\n at async /Users/ziga/.npm/_npx/21240/lib/node_modules/vitepress/node_modules/vite/dist/server/serverPluginModuleRewrite.js:25:9\r\n```\r\n\r\ncauses **Error: ENOENT**.\r\n\r\nI believe it originates from [resolver's APP_PATH](https://github.com/vuejs/vitepress/blob/master/src/node/resolver.ts#L4)",[],"Wrong APP_PATH","2023-01-21T16:25:42Z","https://github.com/vuejs/vitepress/issues/15",0.68813294,{"description":3235,"labels":3236,"number":3238,"owner":3149,"repository":3150,"state":3151,"title":3239,"updated_at":3240,"url":3241,"score":3242},"\u003C!--\r\nNOTE:\r\nVitePress is still WIP, and it is not compatible with VuePress.\r\nPlease do not open issue about default theme missing features or something doesn't work like VuePress.\r\n-->\r\n\r\n**Describe the bug**\r\nsetting base path will make the sidebar blank.\r\n\r\n**To Reproduce**\r\nin .vitepress/config.js:\r\nadd base path setting\r\n\r\n**Expected behavior**\r\nnormal display\r\n\r\n**System Info**\r\n- vitepress version: 0.12.0\r\n- vite version: 2.0.0-beta.50\r\n- Node version: v15.2.1\r\n- OS version: macOS 11.2\r\n\r\n**Additional context**\r\nyou can see there: https://assone.github.io/Note/programing/\r\n",[3237],{"name":3146,"color":3147},242,"setting base path will make the sidebar blank","2023-01-21T16:22:30Z","https://github.com/vuejs/vitepress/issues/242",0.69136584,["Reactive",3244],{},["Set"],["ShallowReactive",3247],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fMNGLzI-l-cK8_tr1u8q4Xc31yJERhT3jlQ2ePR0Z2Hw":-1},"/vuejs/vitepress/319"]