\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.",[3238],{"name":3239,"color":3240},"question","5D5FAE",3513,"部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.73300695,{"description":3247,"labels":3248,"number":3250,"owner":3149,"repository":3150,"state":3160,"title":3251,"updated_at":3252,"url":3253,"score":3254},"### Describe the bug\n\n```\n2025-08-29T04:02:33.940Z\tInitializing build environment...\n2025-08-29T04:02:42.649Z\tSuccess: Finished initializing build environment\n2025-08-29T04:02:43.399Z\tCloning repository...\n2025-08-29T04:02:44.324Z\tNo build output detected to cache. Skipping.\n2025-08-29T04:02:44.325Z\tNo dependencies detected to cache. Skipping.\n2025-08-29T04:02:44.328Z\tDetected the following tools from environment: bun@1.2.15, nodejs@22.16.0\n2025-08-29T04:02:44.330Z\tInstalling project dependencies: bun install\n2025-08-29T04:02:44.510Z\tbun install v1.2.15 (df017990)\n2025-08-29T04:02:44.542Z\tResolving dependencies\n2025-08-29T04:02:49.243Z\tResolved, downloaded and extracted [1564]\n2025-08-29T04:02:50.893Z\tSaved lockfile\n2025-08-29T04:02:50.894Z\t\n2025-08-29T04:02:50.894Z\t+ @cloudflare/vite-plugin@1.12.1\n2025-08-29T04:02:50.894Z\t+ @tsconfig/node22@22.0.2\n2025-08-29T04:02:50.895Z\t+ @types/node@22.18.0 (v24.3.0 available)\n2025-08-29T04:02:50.895Z\t+ @vicons/fa@0.13.0\n2025-08-29T04:02:50.895Z\t+ @vitejs/plugin-vue@6.0.1\n2025-08-29T04:02:50.895Z\t+ @vitejs/plugin-vue-jsx@5.1.1\n2025-08-29T04:02:50.895Z\t+ @vue/tsconfig@0.7.0 (v0.8.1 available)\n2025-08-29T04:02:50.895Z\t+ stylus@0.64.0\n2025-08-29T04:02:50.895Z\t+ typescript@5.8.3 (v5.9.2 available)\n2025-08-29T04:02:50.896Z\t+ vite@7.1.3\n2025-08-29T04:02:50.896Z\t+ vitepress@2.0.0-alpha.12\n2025-08-29T04:02:50.896Z\t+ vue-tsc@3.0.6\n2025-08-29T04:02:50.896Z\t+ wrangler@4.33.1\n2025-08-29T04:02:50.896Z\t+ @tailwindcss/vite@4.1.12\n2025-08-29T04:02:50.896Z\t+ compressorjs@1.2.1\n2025-08-29T04:02:50.896Z\t+ dayjs@1.11.15\n2025-08-29T04:02:50.896Z\t+ hono@4.9.4\n2025-08-29T04:02:50.897Z\t+ ky@1.9.1\n2025-08-29T04:02:50.897Z\t+ naive-ui@2.42.0\n2025-08-29T04:02:50.897Z\t+ pinia@3.0.3\n2025-08-29T04:02:50.897Z\t+ pinia-plugin-persistedstate@4.5.0\n2025-08-29T04:02:50.897Z\t+ tailwindcss@4.1.12\n2025-08-29T04:02:50.897Z\t+ unplugin-auto-import@20.1.0\n2025-08-29T04:02:50.897Z\t+ unplugin-vue-components@29.0.0\n2025-08-29T04:02:50.897Z\t+ vue@3.5.20\n2025-08-29T04:02:50.897Z\t+ vue-router@4.5.1\n2025-08-29T04:02:50.898Z\t+ vue-turnstile@1.0.11\n2025-08-29T04:02:50.898Z\t\n2025-08-29T04:02:50.898Z\t357 packages installed [6.42s]\n2025-08-29T04:02:50.898Z\t\n2025-08-29T04:02:50.898Z\tBlocked 1 postinstall. Run `bun pm untrusted` for details.\n2025-08-29T04:02:50.921Z\tExecuting user build command: npx vitepress build --debug\n2025-08-29T04:02:52.089Z\t\n2025-08-29T04:02:52.089Z\t vitepress v2.0.0-alpha.12\n2025-08-29T04:02:52.089Z\t\n2025-08-29T04:02:52.093Z\t- building client + server bundles...\n2025-08-29T04:02:55.609Z\t✗ Build failed in 1.52s\n2025-08-29T04:02:55.609Z\t✗ building client + server bundles...\n2025-08-29T04:02:55.656Z\tbuild error:\n2025-08-29T04:02:55.656Z\t[vite:vue] [plugin vite:vue] node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue: At least one \u003Ctemplate> or \u003Cscript> is required in a single file component. /opt/buildhome/repo/node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue\n2025-08-29T04:02:55.656Z\tfile: /opt/buildhome/repo/node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue\n2025-08-29T04:02:55.656Z\t[vite:vue] [plugin vite:vue] node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue: At least one \u003Ctemplate> or \u003Cscript> is required in a single file component. /opt/buildhome/repo/node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue\n2025-08-29T04:02:55.656Z\tfile: /opt/buildhome/repo/node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue\n2025-08-29T04:02:55.656Z\tSyntaxError: [plugin vite:vue] node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue: At least one \u003Ctemplate> or \u003Cscript> is required in a single file component. /opt/buildhome/repo/node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue\n2025-08-29T04:02:55.656Z\t at Object.parse$1 [as parse] (/opt/buildhome/repo/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:1871:7)\n2025-08-29T04:02:55.656Z\t at createDescriptor (file:///opt/buildhome/repo/node_modules/@vitejs/plugin-vue/dist/index.js:79:42)\n2025-08-29T04:02:55.657Z\t at transformMain (file:///opt/buildhome/repo/node_modules/@vitejs/plugin-vue/dist/index.js:1633:33)\n2025-08-29T04:02:55.657Z\t at Object.handler (file:///opt/buildhome/repo/node_modules/@vitejs/plugin-vue/dist/index.js:2045:27)\n2025-08-29T04:02:55.657Z\t at Object.handler (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-Bj7gA1-0.js:34329:13)\n2025-08-29T04:02:55.662Z\t at file:///opt/buildhome/repo/node_modules/rollup/dist/es/shared/node-entry.js:22395:40\n2025-08-29T04:02:55.862Z\tFailed: error occurred while running build command\n```\n\n### Reproduction\n\n`\n\n### Expected behavior\n\n`\n\n### System Info\n\n```Text\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.",[3249],{"name":3187,"color":3188},4925,"cloudflare workers delpoy error, but my local deployment is normal, how to troubleshoot.","2025-08-29T05:14:23Z","https://github.com/vuejs/vitepress/issues/4925",0.7331537,["Reactive",3256],{},["Set"],["ShallowReactive",3259],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fXrqTft0_DsBpIFSmStMh_67ffJlBr8KnV-VredImdmU":-1},"/vuejs/vitepress/4002"]