\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.",[2870],{"name":2871,"color":2872},"question","5D5FAE",3513,"部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.6644719,{"description":2879,"labels":2880,"number":2884,"owner":2860,"repository":2861,"state":2862,"title":2885,"updated_at":2886,"url":2887,"score":2888},"### Describe the bug\n\nI have `.github/workflows/deploy.yml` set up in my project root as doc instructed. And Github action succeeds. However, when I visit my pages, its not vitepress that I see but regular github pages.\r\n\r\nIs there some settings I have to alter in github repository itself?\n\n### Reproduction\n\n\r\nThis is my app structure \r\n\r\n```\r\n- root\r\n - docs (vitepress)\r\n - theme/index.js\r\n - config.js\r\n - index.md \r\n - src (src for my vue component lib)\r\n - dist (for my vue component lib)\r\n```\r\n\r\nThis is my github workflow deploy.yml\r\n```\r\nname: Deploy\r\n\r\non:\r\n push:\r\n branches:\r\n - master\r\n\r\njobs:\r\n deploy:\r\n runs-on: ubuntu-latest\r\n steps:\r\n - uses: actions/checkout@v2\r\n - uses: actions/setup-node@v3\r\n with:\r\n node-version: 16\r\n cache: npm\r\n - run: npm ci\r\n\r\n - name: Build\r\n run: npm run docs:build\r\n\r\n - name: Deploy\r\n uses: peaceiris/actions-gh-pages@v3\r\n with:\r\n github_token: ${{ secrets.GITHUB_TOKEN }}\r\n publish_dir: docs/.vitepress/dist\r\n```\n\n### Expected behavior\n\nBuilt vitepress in github pages.\n\n### System Info\n\n```shell\n(Local)\r\nSystem:\r\n OS: macOS 12.2\r\n CPU: (8) arm64 Apple M1 Pro\r\n Memory: 99.72 MB / 16.00 GB\r\n Shell: 5.8 - /bin/zsh\n```\n\n\n### Additional context\n\nMy repository is in an organization.\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.",[2881],{"name":2882,"color":2883},"bug: pending triage","e99695",1144,"Github pages shows index.md natively","2023-01-21T14:26:58Z","https://github.com/vuejs/vitepress/issues/1144",0.67979336,{"description":2890,"labels":2891,"number":2899,"owner":2860,"repository":2861,"state":2862,"title":2900,"updated_at":2901,"url":2902,"score":2903},"### Describe the bug\n\nWhen I commit my code to gitlab, it says: vitepress: not found\r\n\r\n\r\n\r\nthis is my .gitlab-ci.yml \r\n```\r\nimage: node:18\r\npages:\r\n cache:\r\n paths:\r\n - node_modules/\r\n script:\r\n # - apk add git # 如果你使用的是像 alpine 这样的小型 docker 镜像,并且启用了 lastUpdated,请取消注释\r\n - npm install\r\n - npm run docs:build\r\n artifacts:\r\n paths:\r\n - public\r\n only:\r\n - main\r\n```\r\n\r\nwhy? is it because gitlab pages setting error? how to set?\r\n\r\n\n\n### Reproduction\n\nsee above\n\n### Expected behavior\n\nsee above\n\n### System Info\n\n```Text\nsee above\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,2893,2896],{"name":2871,"color":2872},{"name":2894,"color":2895},"need more info","bdbefc",{"name":2897,"color":2898},"stale","ededed",3887,"Deploy to gitlab - vitepress: not found","2024-07-09T04:41:49Z","https://github.com/vuejs/vitepress/issues/3887",0.6812153,{"description":2905,"labels":2906,"number":2908,"owner":2860,"repository":2861,"state":2862,"title":2909,"updated_at":2910,"url":2911,"score":2912},"### Describe the bug\r\n\r\nWhen I deployed my website to Vercel, I tried to access the website via specific url like https://rule.xfisxf.top/policy/charter.html to check out an article. But the content missed in less 1s and it threw `framework.gkMttBBc.js:2 Hydration completed but contains mismatches.` error in console.\r\n\r\n\r\n\r\n\r\n### Reproduction\r\n\r\nDeploy website to Vercel\r\n\r\n### Expected behavior\r\n\r\nChecked out complete content in browser\r\n\r\n\r\n\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: Windows 11 10.0.22631\r\n CPU: (4) x64 Intel(R) Pentium(R) CPU GOLD 6500Y @ 1.10GHz\r\n Memory: 1.46 GB / 7.92 GB\r\n Binaries:\r\n Node: 18.19.0 - ~\\scoop\\apps\\nvm\\current\\nodejs\\nodejs\\node.EXE\r\n Yarn: 1.22.21 - ~\\scoop\\apps\\nvm\\current\\nodejs\\nodejs\\yarn.CMD\r\n npm: 10.2.5 - ~\\scoop\\apps\\nvm\\current\\nodejs\\nodejs\\npm.CMD\r\n pnpm: 8.15.1 - ~\\scoop\\shims\\pnpm.EXE\r\n Browsers:\r\n Edge: Chromium (121.0.2277.112), ChromiumDev (123.0.2380.1)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: 1.0.0-rc.42 => 1.0.0-rc.42\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nThe error only appears in production env.\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.",[2907],{"name":2882,"color":2883},3570,"Content missing when being deployed to Vercel","2024-02-20T00:05:12Z","https://github.com/vuejs/vitepress/issues/3570",0.6841151,{"description":2914,"labels":2915,"number":2917,"owner":2860,"repository":2861,"state":2862,"title":2918,"updated_at":2919,"url":2920,"score":2921},"### Describe the bug\r\n\r\n之前我一直在使用 `vitepress: ^1.0.0-beta.5` 版本,近期升级最新版本之后发现 `withBase` 出现了问题,某些地方的 `withBase` 不生效了,当我回退到 `1.0.0-beta.5` 版本,`withBase` 表现恢复正常。查看版本更新记录发现并没有对 `withBase` 作出更改。\r\n\r\n### Reproduction\r\n\r\nhttps://github.com/peiyanlu/vite-press/blob/docs-deploy/docs/archive/components/DocTimeline.vue#L125\r\n\r\n### Expected behavior\r\n\r\n`withBase` 表现正常\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: Windows 11 10.0.26100\r\n CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13980HX\r\n Memory: 13.04 GB / 31.63 GB\r\n Binaries:\r\n Node: 16.20.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.22 - C:\\Program Files\\nodejs\\yarn.CMD\r\n npm: 8.19.4 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 9.4.0 - ~\\AppData\\Local\\pnpm\\pnpm.EXE\r\n Browsers:\r\n Edge: Chromium (126.0.2592.87)\r\n Internet Explorer: 11.0.26100.1\r\n npmPackages:\r\n vitepress: 1.3.0 => 1.3.0\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.",[2916],{"name":2882,"color":2883},4034,"withBase 表现异常","2024-07-19T04:42:27Z","https://github.com/vuejs/vitepress/issues/4034",0.6946641,{"description":2923,"labels":2924,"number":2926,"owner":2860,"repository":2861,"state":2862,"title":2927,"updated_at":2928,"url":2929,"score":2930},"### Describe the bug\n\nWe are working on an internal knowledgebase with VitePress, and deploying internally works great. But if we pass the resource as an protected application to CloudFlare Tunnels or if we deploy the app to a CloudFlare pages (web site hosting) the home layout appears twice and the links don't clear content before loading new content.\n\n### Reproduction\n\nDeploy with CloudFlare Tunnel or to CloudFlare Pages.\n\n### Expected behavior\n\nTo work like it does when we run it local in dev, like it does when we build and preview, like it does when we use GitHub pages. Works everywhere but CloudFlare.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz\r\n Memory: 4.66 GB / 39.79 GB\r\n Binaries:\r\n Node: 18.12.1 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 9.2.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22621.963.0), Chromium (108.0.1462.54)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.31 => 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.",[2925],{"name":2882,"color":2883},1769,"CloudFlare Deploys Disfunctional","2023-01-21T14:16:48Z","https://github.com/vuejs/vitepress/issues/1769",0.69864285,{"description":2932,"labels":2933,"number":2934,"owner":2860,"repository":2861,"state":2862,"title":2935,"updated_at":2936,"url":2937,"score":2938},"\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\n`yarn docs:dev` renders home page on `http://localhost:3000` despite *base* is defined in *config.js*. But asset links honor the base path.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. follow *getting started* to create new site\r\n2. create file */docs/.vitepress/config.js* with base set to, say `/foo/`\r\n3. run `yarn docs:dev`\r\n\r\n**Expected behavior**\r\nSite should be rendered at `http://localhost:3000/foo/`\r\n\r\n**System Info**\r\n- vitepress version: 0.9.1\r\n- vite version: 1.0.0-rc.13\r\n- Node version: v14.5.0\r\n- OS version: Windows 10\r\n\r\n",[],181,"dev home page doesn't honor base config","2023-01-21T16:23:59Z","https://github.com/vuejs/vitepress/issues/181",0.7000454,{"description":2940,"labels":2941,"number":2943,"owner":2860,"repository":2861,"state":2862,"title":2944,"updated_at":2945,"url":2946,"score":2947},"### 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.",[2942],{"name":2882,"color":2883},2349,"热更新","2023-05-24T00:03:54Z","https://github.com/vuejs/vitepress/issues/2349",0.70086795,{"description":2949,"labels":2950,"number":2952,"owner":2860,"repository":2861,"state":2862,"title":2953,"updated_at":2954,"url":2955,"score":2956},"### Describe the bug\n\njust like title decribe,\r\nin vit.config.js i just set ssr option`noExternal: ['packages']`, base option does not work in product. In builded html file the js assets path is '/assets/jsfile.js' which should be `/docs/assets/jsfile.js`. And if i use --base='/docs/' the res path will add base url but when i put it on my server it dont work and shows `Hydration completed but contains mismatch` in my console\n\n### Reproduction\n\nidk, it huge project, monorepo\n\n### Expected behavior\n\nlike dev when i put it in nginx\n\n### System Info\n\n```Text\nvitpress 1.2.3\r\npnpm: 9.4.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.",[2951],{"name":2894,"color":2895},3984,"base option dont work in build in vite.config.js, if use in commend line like '--base=./' Hydration completed but contains mismatch","2024-07-04T04:41:53Z","https://github.com/vuejs/vitepress/issues/3984",0.7033653,["Reactive",2958],{},["Set"],["ShallowReactive",2961],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$ffEOCi2kEOK_nvKTXugt5JG8EmWnUefMwcC7pO-Gjizs":-1},"/vuejs/vitepress/1146"]