\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.",[3020],{"name":3021,"color":3022},"question","5D5FAE",3513,"vuejs","vitepress","closed","部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.6630522,{"description":3032,"labels":3033,"number":3040,"owner":3024,"repository":3025,"state":3026,"title":3041,"updated_at":3042,"url":3043,"score":3044},"### Describe the bug\r\n\r\ndefault preview or serve not use localhost but log localhost\r\n\r\n```sh\r\nyarn docs:serve\r\n```\r\n\r\nyarn run v1.22.19\r\n$ vitepress serve docs\r\nvitepress v1.0.0-alpha.19\r\nBuilt site served at http://localhost:4173/ **\u003C= (actually, not localhost...)**\r\n\r\n```sh\r\nnetstat -tnlp | grep 4173\r\n```\r\ntcp6 0 0 :::4173 :::* LISTEN 3018965/node\r\n\r\n### Reproduction\r\n\r\nvitepress demo\r\n\r\n```sh\r\nyarn docs:preview\r\n# or\r\nyarn docs:serve\r\n```\r\n\r\n### Expected behavior\r\n\r\nlog for correct host:\r\nlocalhost? 127.0.0.1? 0.0.0.0? ip?\r\nDon't mislead me~ T_T\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: Linux 4 CentOS Linux 8\r\n Memory: 2.72 GB / 3.65 GB\r\n Container: Yes\r\n Shell: 4 - /bin/bash\r\n Binaries:\r\n Node: 16.17.1 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /data/app/node-v14.18.1-linux-x64/bin/yarn\r\n npm: 8.15.0 - /usr/local/bin/npm\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/about/coc.html)\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.",[3034,3037],{"name":3035,"color":3036},"build","377ba8",{"name":3038,"color":3039},"stale","ededed",1867,"default preview or serve not use localhost but log localhost","2023-08-13T00:04:20Z","https://github.com/vuejs/vitepress/issues/1867",0.67227757,{"description":3046,"labels":3047,"number":3051,"owner":3024,"repository":3025,"state":3026,"title":3052,"updated_at":3053,"url":3054,"score":3055},"### Describe the bug\n\nStart the service, `localhost:3000` is not displayed.\n\n### Reproduction\n\n- install vitepress `v0.19.2`\r\n- run `vitepress dev docs`\n\n### Expected behavior\n\nDisplay `http://localhost:3000` in the terminal.\n\n### System Info\n\n```shell\nSystem:\r\nvitepress version: 0.19.2\r\nvite version: 2.6.2\r\nnode version: 16.10.0\n```\n\n\n### Additional context\n\n\u003Cimg width=\"680\" alt=\"Screen Shot 2021-10-04 at 6 36 11 PM\" src=\"https://user-images.githubusercontent.com/16164244/135836975-4f9d8469-5315-462b-85b8-cee177bdbd1c.png\">\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.",[3048],{"name":3049,"color":3050},"bug: pending triage","e99695",407,"Start the server, the localhost link is lost.","2023-01-21T16:20:29Z","https://github.com/vuejs/vitepress/issues/407",0.6887271,{"description":3057,"labels":3058,"number":3060,"owner":3024,"repository":3025,"state":3026,"title":3061,"updated_at":3062,"url":3063,"score":3064},"### Describe the bug\n\nwhen configuring the search engine as the documentation mentions https://vitepress.dev/reference/default-theme-search#local-search, the app breaks:\r\n\r\n\r\n\r\n\r\n\n\n### Reproduction\n\n:)\n\n### Expected behavior\n\n\r\n\n\n### System Info\n\n```sh\n$ npx envinfo --system --npmPackages vitepress --binaries --browsers\r\nnpx: installed 1 in 2.16s\r\n\r\n System:\r\n OS: Windows 10 10.0.19045\r\n CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz\r\n Memory: 4.40 GB / 15.82 GB\r\n Binaries:\r\n Node: 14.19.0 - D:\\nodejs\\node.EXE\r\n Yarn: 1.22.17 - D:\\nodejs\\yarn.CMD\r\n npm: 6.14.16 - D:\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (113.0.1774.57)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: latest => 1.0.0-beta.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.",[3059],{"name":3049,"color":3050},2435,"Local Search Error","2023-06-05T00:04:07Z","https://github.com/vuejs/vitepress/issues/2435",0.6947346,{"description":3066,"labels":3067,"number":3069,"owner":3024,"repository":3025,"state":3026,"title":3070,"updated_at":3071,"url":3072,"score":3073},"\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\nAfter running npx vitepress, I open the browser and load the address of http://localhost:3000, but I get a error.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\nPS D:\\桌面\\demo> npx vitepress\r\nvitepress v0.5.0\r\nvite v1.0.0-rc.4\r\nlistening at http://localhost:3000\r\n[vite] Failed to resolve module import \"vue/dist/vue.runtime.esm-bundler.js.0.0-rc.5@vuedist\u000bue.runtime.esm-bundler.js\". (imported by /@app/components/Debug.vue)\r\n\r\n**Expected behavior**\r\nGetting \"Hello Vitepress\" in browser.\r\n\r\n**System Info**\r\n- vitepress version: v0.5.0\r\n- vite version: v1.0.0-rc.4\r\n- Node version: 12.14.0\r\n- OS version:10.0.19041 暂缺 Build 19041\r\n\r\n**Additional context**\r\n尤大大,I am you big fan.\r\n",[3068],{"name":3049,"color":3050},65,"服务启动之后,进入地址报错","2023-01-21T16:25:36Z","https://github.com/vuejs/vitepress/issues/65",0.6973528,{"description":3075,"labels":3076,"number":3078,"owner":3024,"repository":3025,"state":3026,"title":3079,"updated_at":3080,"url":3081,"score":3082},"### 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.",[3077],{"name":3049,"color":3050},2349,"热更新","2023-05-24T00:03:54Z","https://github.com/vuejs/vitepress/issues/2349",0.6973788,{"description":3084,"labels":3085,"number":3087,"owner":3024,"repository":3025,"state":3026,"title":3088,"updated_at":3089,"url":3090,"score":3091},"### Describe the bug\n\nEach time I build docs with GitHub Action (workflows), every page generated by VitePress set its 'Last Updated' time up to date.\n\n### Reproduction\n\nSee [Demo](https://tazimi.dev/awesome-notes/).\n\n### Expected behavior\n\n'Last Update' time should be consistent to git update timestamp, shouldn't consistent to `vitepress build` timestamp.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Linux 5.8 Ubuntu 20.04.2 LTS (Focal Fossa)\r\n CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz\r\n Memory: 2.71 GB / 7.66 GB\r\n Container: Yes\r\n Shell: 5.8 - /usr/bin/zsh\r\n Binaries:\r\n Node: 16.4.2 - ~/.nvm/versions/node/v16.4.2/bin/node\r\n npm: 7.18.1 - ~/.nvm/versions/node/v16.4.2/bin/npm\r\n Browsers:\r\n Firefox: 90.0\r\n npmPackages:\r\n vitepress: ^0.15.6 => 0.15.6\n```\n\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] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3086],{"name":3049,"color":3050},343,"Last updated time error","2023-01-21T14:34:11Z","https://github.com/vuejs/vitepress/issues/343",0.7005054,{"description":3093,"labels":3094,"number":3096,"owner":3024,"repository":3025,"state":3026,"title":3097,"updated_at":3098,"url":3099,"score":3100},"### Describe the bug\n\nNode says I got vulneribilities after installing vitepress `v1.6.3`.\n```\n# npm audit report\n\nesbuild \u003C=0.24.2\nSeverity: moderate\nesbuild enables any website to send any requests to the development server and read the response - https://github.com/advisories/GHSA-67mh-4wv8-2f99\nfix available via `npm audit fix --force`\nWill install vitepress@0.1.1, which is a breaking change\nnode_modules/esbuild\n vite 0.11.0 - 6.1.6\n Depends on vulnerable versions of esbuild\n node_modules/vite\n vitepress 0.2.0 - 1.6.3\n Depends on vulnerable versions of vite\n node_modules/vitepress\n```\n\n### Reproduction\n\nInstall as recommended with `npm add -D vitepress`.\n\n### Expected behavior\n\nI expected to not get vulnerabilities...\n\n### System Info\n\n```Text\nSystem:\n OS: Windows 11 10.0.26100\n CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor\n Memory: 19.83 GB / 31.91 GB\n Binaries:\n Node: 23.6.0 - C:\\nvm4w\\nodejs\\node.EXE\n npm: 11.3.0 - C:\\nvm4w\\nodejs\\npm.CMD\n Browsers:\n Edge: Chromium (131.0.2903.70)\n Internet Explorer: 11.0.26100.1882\n npmPackages:\n vitepress: ^1.6.3 => 1.6.3\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.",[3095],{"name":3049,"color":3050},4730,"Node warns of esbuild vulnerabilities","2025-05-03T14:21:13Z","https://github.com/vuejs/vitepress/issues/4730",0.7020634,{"description":3102,"labels":3103,"number":3105,"owner":3024,"repository":3025,"state":3026,"title":3106,"updated_at":3107,"url":3108,"score":3109},"**Describe the bug**\r\nI execute the build and it break ...\r\n\r\n\r\n\r\n**To Reproduce**\r\nFollow https://vitepress.vuejs.org/guide/getting-started.html\r\n\r\n**Expected behavior**\r\nA clear and concise description of what you expected to happen.\r\n\r\n**System Info**\r\n- vitepress version: 0.15\r\n- vite version: ?\r\n- Node version: 16\r\n- OS version: Windows 10\r\n\r\n**Additional context**\r\nIt works on my native maschine. But not in the virtual developer VM.\r\n",[3104],{"name":3049,"color":3050},323,"Could not build on different systems","2023-01-21T16:22:19Z","https://github.com/vuejs/vitepress/issues/323",0.70269233,{"description":3111,"labels":3112,"number":3114,"owner":3024,"repository":3025,"state":3026,"title":3115,"updated_at":3116,"url":3117,"score":3118},"### Describe the bug\n\nUpon following the starter instructions in the [docs](https://vitepress.vuejs.org/guide/getting-started.html), running `yarn docs:dev` yields a blank webpage at `localhost:3000` with the error shown below in the console.\r\n\r\n\r\n\n\n### Reproduction\n\nFollowing the instructions outlined on the Getting Started page on [vitepress.vuejs.org](https://vitepress.vuejs.org/guide/getting-started.html).\n\n### Expected behavior\n\n\"Hello Vitepress\" should be rendered to the screen with no error messages in the console.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Linux 5.13 Fedora 34 (Workstation Edition) 34 (Workstation Edition)\r\n CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz\r\n Memory: 2.30 GB / 15.28 GB\r\n Container: Yes\r\n Shell: 5.1.0 - /bin/bash\r\n Binaries:\r\n Node: 14.17.0 - /usr/bin/node\r\n Yarn: 1.22.5 - /usr/bin/yarn\r\n npm: 7.20.5 - /usr/local/bin/npm\r\n Browsers:\r\n Chrome: 92.0.4515.131\r\n Firefox: 90.0.2\n```\n\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] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3113],{"name":3049,"color":3050},355,"import not found: defineEmit","2023-01-21T16:22:12Z","https://github.com/vuejs/vitepress/issues/355",0.70350677,["Reactive",3120],{},["Set"],["ShallowReactive",3123],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fky9zkgOXBrMuYomqmKVTgR2c3G3sXQEOOqQ6_N5HRdM":-1},"/vuejs/vitepress/1203"]