\r\n2. 配置文件如下所示:\u003Cbr /> \n\n### Expected behavior\n\n使用 Github 自带的 https://xihuanxiaorang.github.io/docs/ 访问就没有任何问题,如果是使用自定义域名 https://docs.xiaorang.fun/ 的话,样式就会丢失\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz\r\n Memory: 659.73 MB / 3.92 GB\r\n Binaries:\r\n Node: 20.11.0 - E:\\nodejs\\node.EXE\r\n Yarn: 1.22.21 - E:\\nodejs\\node_global\\yarn.CMD\r\n npm: 10.2.4 - E:\\nodejs\\npm.CMD\r\n pnpm: 8.14.3 - E:\\nodejs\\node_global\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (120.0.2210.144)\r\n Internet Explorer: 11.0.19041.3636\r\n npmPackages:\r\n vitepress: 1.0.0-rc.40 => 1.0.0-rc.40\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.",[2867],{"name":2868,"color":2869},"question","5D5FAE",3513,"vuejs","vitepress","closed","部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.64789116,{"description":2879,"labels":2880,"number":2884,"owner":2871,"repository":2872,"state":2873,"title":2885,"updated_at":2886,"url":2887,"score":2888},"### Describe the bug\r\n\r\n指定端口号后热更新失效,恢复默认之后热更新依旧不生效\r\n\r\n### Reproduction\r\n\r\nvitepress dev docs --host --port 9999\r\n\r\n### Expected behavior\r\n\r\n热更新生效\r\n\r\n### System Info\r\n\r\n```sh\r\nSystem: \r\n OS: Windows 10 10.0.19044 \r\n CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz\r\n Memory: 44.27 GB / 63.71 GB \r\n Binaries: \r\n Node: 14.18.2 - C:\\Program Files\\nodejs\\node.EXE \r\n Yarn: 1.22.19 - C:\\Program Files (x86)\\Yarn\\bin\\yarn.CMD \r\n npm: 6.14.15 - C:\\Program Files\\nodejs\\npm.CMD \r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (112.0.1722.68)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: 1.0.0-alpha.75 => 1.0.0-alpha.75\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\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.",[2881],{"name":2882,"color":2883},"bug: pending triage","e99695",2349,"热更新","2023-05-24T00:03:54Z","https://github.com/vuejs/vitepress/issues/2349",0.6591218,{"description":2890,"labels":2891,"number":2893,"owner":2871,"repository":2872,"state":2873,"title":2894,"updated_at":2895,"url":2896,"score":2897},"### Describe the bug\n\nThe sitemap seemingly isn't being generated for my instance of Vitepress. \r\n\r\nBelow is a snippet from my configuration file, I have read the documentation and from what I know, I've configured the base path correctly as page navigation is functional in production. I deploy with GitHub pages if that makes any difference, however I can't get a sitemap to generate locally either. (With an adjusted hostname)\r\n\r\n```\r\n base: \"/\",\r\n sitemap: {\r\n hostname: 'https://docs.vanguardbackup.com/'\r\n },\r\n```\r\n\r\nMy full configuration file can be found [here](https://github.com/vanguardbackup/docs/blob/bc401a3676e1f27444d1bf302249f4c724522c1d/.vitepress/config.mjs#L39).\r\n\n\n### Reproduction\n\nCreate a Vitepress project, define the hostname and base and visit the /sitemap.xml path.\n\n### Expected behavior\n\nThe sitemap should be generated and accessible at /sitemap.xml.\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 15.0\r\n CPU: (8) arm64 Apple M1 Pro\r\n Memory: 87.41 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 22.4.0 - /opt/homebrew/bin/node\r\n npm: 10.8.1 - /opt/homebrew/bin/npm\r\n Browsers:\r\n Chrome: 126.0.6478.183\r\n Safari: 18.0\r\n npmPackages:\r\n vitepress: ^1.3.1 => 1.3.1\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.",[2892],{"name":2882,"color":2883},4079,"Sitemap doesn't seem to be generating in v1.3.1","2024-08-03T04:41:53Z","https://github.com/vuejs/vitepress/issues/4079",0.6654295,{"description":2899,"labels":2900,"number":2907,"owner":2871,"repository":2872,"state":2873,"title":2908,"updated_at":2909,"url":2910,"score":2911},"### Is your feature request related to a problem? Please describe.\n\nvitepress does not generate a sitemap.xml\n\n### Describe the solution you'd like\n\nvitepress should generate a sitemap based on the config.js\n\n### Describe alternatives you've considered\n\nThe user could create a sitemap by hand\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/coc)\n- [X] Read the [docs](https://vitepress.vuejs.org/).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/master/.github/contributing.md).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2901,2904],{"name":2902,"color":2903},"build","377ba8",{"name":2905,"color":2906},"has-workaround","1B4515",520,"Sitemap generation","2023-08-04T00:04:31Z","https://github.com/vuejs/vitepress/issues/520",0.6737921,{"description":2913,"labels":2914,"number":2918,"owner":2871,"repository":2872,"state":2873,"title":2919,"updated_at":2920,"url":2921,"score":2922},"### Describe the bug\n\n\r\n\r\n看着就像是张图片一样, 无法点击播放\n\n### Reproduction\n\n-\n\n### Expected behavior\n\n能正常播放\n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)\r\n CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz\r\n Memory: 13.57 GB / 15.54 GB\r\n Container: Yes\r\n Shell: 5.1.16 - /bin/bash\r\n Binaries:\r\n Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 10.2.3 - ~/.nvm/versions/node/v18.19.0/bin/npm\r\n pnpm: 8.7.1 - /usr/local/bin/pnpm\r\n npmPackages:\r\n vitepress: 1.0.0-rc.31 => 1.0.0-rc.31\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.",[2915],{"name":2916,"color":2917},"need more info","bdbefc",3296,"video 标签引入的资源无法播放","2024-01-11T00:04:47Z","https://github.com/vuejs/vitepress/issues/3296",0.6740119,{"description":2924,"labels":2925,"number":2930,"owner":2871,"repository":2872,"state":2873,"title":2931,"updated_at":2932,"url":2933,"score":2934},"### Describe the bug\n\nrun vitepress build error:\r\n> docs@1.0.0 docs:build E:\\yto-engine\\docs\r\n> vitepress build\r\n\r\n\r\n vitepress v1.0.0-alpha.74\r\n\r\n⠴ building client + server bundles...\r\n(!) Some chunks are larger than 500 kBs after minification. Consider:\r\n- Using dynamic import() to code-split the application\r\n- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks\r\n- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.\r\n✓ building client + server bundles...\r\nbuild error:\r\nTypeError: Cannot assign to read only property '__esModule' of object '#\u003CObject>'\r\n at file:///E:/yto-engine/docs/.vitepress/.temp/plugin-vue_export-helper.b00f2ce5.js:7100:20\r\n at Array.forEach (\u003Canonymous>)\r\n at file:///E:/yto-engine/docs/.vitepress/.temp/plugin-vue_export-helper.b00f2ce5.js:7098:29\r\n at requireVue_cjs_prod (file:///E:/yto-engine/docs/.vitepress/.temp/plugin-vue_export-helper.b00f2ce5.js:7102:5)\r\n at file:///E:/yto-engine/docs/.vitepress/.temp/plugin-vue_export-helper.b00f2ce5.js:7179:22\r\n at file:///E:/yto-engine/docs/.vitepress/.temp/plugin-vue_export-helper.b00f2ce5.js:7183:3\r\n at ModuleJob.run (node:internal/modules/esm/module_job:198:25)\r\n at async Promise.all (index 0)\r\n at async ESMLoader.import (node:internal/modules/esm/loader:385:24)\r\n at async build (file:///E:/yto-engine/node_modules/.pnpm/vitepress@1.0.0-alpha.74/node_modules/vitepress/dist/node/serve-c662a607.js:41704:24)\r\n ELIFECYCLE Command failed with exit code 1.\r\n ELIFECYCLE Command failed with exit code 1.\n\n### Reproduction\n\ngit-clone:https://github.com/Hollelihanqi/ui.git\r\nstep1:\r\npnpm install\r\nstep2:\r\npnpm docs:build\n\n### Expected behavior\n\nvirepress build success\n\n### System Info\n\n```sh\nnodejs 16.15.0\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.",[2926,2927],{"name":2882,"color":2883},{"name":2928,"color":2929},"stale","ededed",2337,"build error","2023-09-25T00:04:32Z","https://github.com/vuejs/vitepress/issues/2337",0.67755276,{"description":2936,"labels":2937,"number":2939,"owner":2871,"repository":2872,"state":2873,"title":2940,"updated_at":2941,"url":2942,"score":2943},"### Describe the bug\n\nyarn docs:dev\r\n\r\nBrowser display error:\r\n\r\n\n\n### Reproduction\n\nFollow the getting started case, which is https://vitepress.vuejs.org/guide/getting-started.html\n\n### Expected behavior\n\nNormal display index.md\n\n### System Info\n\n```shell\n~~~\r\nPS G:\\vitePress> npx envinfo --system --npmPackages vitepress --binaries --browsers\r\nNeed to install the following packages:\r\n envinfo\r\nOk to proceed? (y) y\r\n\r\n System:\r\n OS: Windows 10 10.0.17763\r\n CPU: (8) x64 Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz\r\n Memory: 3.91 GB / 7.93 GB\r\n Binaries:\r\n Node: 16.5.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.10 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 7.20.5 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Chrome: 92.0.4515.107\r\n Edge: Spartan (44.17763.831.0)\r\n Internet Explorer: 11.0.17763.771\r\n npmPackages:\r\n vitepress: ^0.15.6 => 0.15.6\r\n~~~\n```\n\n\n### Additional context\n\n\r\n\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/coc)\n- [X] Read the [docs](https://vitepress.vuejs.org/).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2938],{"name":2882,"color":2883},359,"Using the simplest example, an error occurred","2023-01-21T16:22:13Z","https://github.com/vuejs/vitepress/issues/359",0.67945206,{"description":2945,"labels":2946,"number":2948,"owner":2871,"repository":2872,"state":2873,"title":2949,"updated_at":2950,"url":2951,"score":2952},"### Describe the bug\n\n版本:\"vitepress\": \"^1.0.0-alpha.35\", \r\n里面没有多余的东西。就是按照官网https://vitepress.vuejs.org/guide/getting-started 走到了第三步。然后将 index.md 的内容添加了 {1}\r\n\r\n\r\n\r\n\n\n### Reproduction\n\n按照官网https://vitepress.vuejs.org/guide/getting-started 走到了第三步。然后将 index.md 的内容添加了 {1}\n\n### Expected behavior\n\n正常渲染 {1} 标签的内容\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H\r\n Memory: 1.50 GB / 15.73 GB\r\n Binaries:\r\n Node: 16.15.1 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 8.11.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22621.963.0), Chromium (108.0.1462.76)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.35 => 1.0.0-alpha.35\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2947],{"name":2882,"color":2883},1781,"在内容里使用 {xxx} 就会报错","2023-01-21T14:16:43Z","https://github.com/vuejs/vitepress/issues/1781",0.68008727,{"description":2954,"labels":2955,"number":2957,"owner":2871,"repository":2872,"state":2873,"title":2958,"updated_at":2959,"url":2960,"score":2961},"### Describe the bug\r\n\r\n\r\n\r\n\r\n\r\n\r\n### Reproduction\r\n\r\nyarn add vitepress\r\n\r\nedit package.json\r\n\r\n~~~\r\n \"scripts\": {\r\n \"docs:dev\": \"vitepress dev docs\",\r\n \"docs:build\": \"vitepress build docs\",\r\n \"docs:serve\": \"vitepress serve docs\"\r\n }\r\n~~~\r\n\r\nyarn docs:dev\r\n\r\n### Expected behavior\r\n\r\nnormal display\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: Windows 10 10.0.17763\r\n CPU: (8) x64 Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz\r\n Memory: 3.25 GB / 7.93 GB\r\n Binaries:\r\n Node: 16.5.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.10 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 7.20.5 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Chrome: 92.0.4515.107\r\n Edge: Spartan (44.17763.831.0)\r\n Internet Explorer: 11.0.17763.771\r\n npmPackages:\r\n vitepress: ^0.16.1 => 0.16.1\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/coc)\r\n- [X] Read the [docs](https://vitepress.vuejs.org/).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2956],{"name":2882,"color":2883},362,"Strange symbols appear","2023-01-21T16:22:12Z","https://github.com/vuejs/vitepress/issues/362",0.68128973,{"description":2963,"labels":2964,"number":2968,"owner":2871,"repository":2872,"state":2873,"title":2969,"updated_at":2970,"url":2971,"score":2972},"### Describe the bug\n\nWhen following the steps in https://vitepress.dev/guide/getting-started, the production build doesn't work. \n\n### Reproduction\n\nFirst I used \r\n```\r\nnpx vitepress init\r\n```\r\nto create [this repo](https://gitlab.com/urswilke/vitepress_from_template2).\r\n\r\nI used all the default settings, apart from setting `./docs` in\r\n```\r\nWhere should VitePress initialize the config?\r\n ./docs\r\n```\r\n\r\n\r\nThen, I run:\r\n```\r\nnpm run docs:build \r\n```\r\n\r\nWhen opening the file `docs/.vitepress/dist/index.html`, this results in the CORS errors in the following screenshot:\r\n\r\n\r\n\r\n\r\n\n\n### Expected behavior\n\nThe production build should result in the same as on the dev server (which works).\n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 6.9 Arch Linux\r\n CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz\r\n Memory: 20.41 GB / 31.12 GB\r\n Container: Yes\r\n Shell: 5.2.26 - /bin/bash\r\n Binaries:\r\n Node: 22.4.1 - /usr/bin/node\r\n npm: 10.8.2 - /usr/bin/npm\r\n npmPackages:\r\n vitepress: ^1.3.1 => 1.3.1\n```\n\n\n### Additional context\n\nOn chrome, the site isn't correctly built either.\r\nThe deploy on gitlab pages also doesn't work (see [here](https://vitepress-from-template2-urswilke-295c17a73cbd456dc43a7cf324dd1.gitlab.io/)).\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.",[2965],{"name":2966,"color":2967},"docs","0075ca",4055,"update notes on base in gitlab deploy guide","2024-07-25T04:42:43Z","https://github.com/vuejs/vitepress/issues/4055",0.68735045,["Reactive",2974],{},["Set"],["ShallowReactive",2977],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fvEGNlRY4gC-hdoDmt6ANl78IU5lmKl1cWMCXM9a0NLI":-1},"/vuejs/vitepress/2749"]