\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.",[3221],{"name":3222,"color":3223},"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.6950533,{"description":3230,"labels":3231,"number":3234,"owner":3149,"repository":3150,"state":3151,"title":3235,"updated_at":3236,"url":3237,"score":3238},"### Describe the bug\r\n\r\nBuild blocking error happen on \"vitepress build docs\".\r\nWorks correctly and as intended on \"vitepress dev docs --port 8080\"\r\n\r\nTypeError: Failed to parse URL from [path]\r\n[cause]: TypeError [ERR_INVALID_URL]\r\n\r\n### Reproduction\r\n\r\nUse the regular Markdown File Inclusion with any file in any .md file, then try to build with \"vitepress build docs\".\r\n\r\nhttps://vitepress.dev/guide/markdown#markdown-file-inclusion\r\n\r\n### Expected behavior\r\n\r\nBuild concluding with success and no error displayed.\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem: \r\n OS: Windows 10 10.0.19044 \r\n CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz \r\n Memory: 1.94 GB / 7.62 GB \r\n Binaries: \r\n Node: 19.8.1 - C:\\Program Files\\nodejs\\node.EXE \r\n Yarn: 1.22.17 - ~\\AppData\\Roaming\\npm\\yarn.CMD \r\n npm: 9.5.1 - C:\\Program Files\\nodejs\\npm.CMD \r\n Browsers: \r\n Edge: Spartan (44.19041.1266.0), Chromium (111.0.1661.62)\r\n Internet Explorer: 11.0.19041.1566 \r\n npmPackages: \r\n vitepress: ^1.0.0-alpha.62 => 1.0.0-alpha.62\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n\r\n\r\n\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.dev).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3232,3233],{"name":3179,"color":3180},{"name":3202,"color":3203},2180,"Markdown \"@include\" throw \"ERR_INVALID_URL\" on \"vitepress build docs\"","2023-08-11T00:04:15Z","https://github.com/vuejs/vitepress/issues/2180",0.69760513,{"description":3240,"labels":3241,"number":3242,"owner":3149,"repository":3150,"state":3151,"title":3243,"updated_at":3244,"url":3245,"score":3246},"### Describe the bug\n\nI want to use `VitePress` to build a blog, I want to find current post base on route, so i have below code:\r\n```\r\n\tfunction findCurrentIndex() {\r\n\t\t\r\n\t\tconst result = posts.findIndex((p) => p.url.includes(route.path))\r\n\t\tif (result === -1) console.error(`blog post missing: ${route.path}`)\r\n\t\treturn result\r\n\t}\r\n\r\n```\r\nthis works fine, when we do not enable rewrites or set `base` configuration, because url of post comes from `createContentLoader` do not add `base` or prefix, so I wrap the url with `withBase` in many places, could anyone explain why `createContentLoader ` not return the 'correct' url base on site configuration or rewrites rules? \r\nI add `withBase` inside loader as well, but It doesn't work\r\n```\r\nexport default createContentLoader(pattern, {\r\n\texcerpt: '\u003C!--more-->',\r\n\ttransform(raw): Post[] {\r\n\t\treturn raw\r\n\t\t\t.map(({ url, frontmatter, excerpt }) => ({\r\n\t\t\t\ttitle: frontmatter.title,\r\n\t\t\t\tcategories: frontmatter?.categories ?? [],\r\n\t\t\t\tdescription: excerpt,\r\n\t\t\t\ttags: frontmatter.tags ?? [],\r\n\t\t\t\turl: withBase(url), // in here will got error message: does not provide an export named 'withBase'\r\n\t\t\t\texcerpt,\r\n\t\t\t\tdate: formatDate(frontmatter.date),\r\n\t\t\t}))\r\n\t\t\t.sort((a, b) => b.date.time - a.date.time)\r\n\t},\r\n})\r\n```\n\n### Reproduction\n\nas describe\n\n### Expected behavior\n\ncreateContentLoader return correct url\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (4) x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz\r\n Memory: 19.90 GB / 31.96 GB\r\n Binaries:\r\n Node: 18.17.1 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 9.6.7 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 8.7.4 - ~\\AppData\\Roaming\\npm\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (117.0.2045.60)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: 1.0.0-rc.20 => 1.0.0-rc.20\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.",[],3063,"createContentLoader do not return correct url of post","2023-10-24T00:04:13Z","https://github.com/vuejs/vitepress/issues/3063",0.69890684,["Reactive",3248],{},["Set"],["ShallowReactive",3251],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fp7dMUxYz6-W69HxHWr4fzKTkMWt4NqcmkdkXUqD9xDQ":-1},"/vuejs/vitepress/1857"]