\r\n title: Feature A\r\n details: Lorem ipsum dolor sit amet, consectetur adipiscing elit\r\n```\r\n\r\nCheck the feature icon type\r\n```ts\r\ntype FeatureIcon =\r\n | string\r\n | { src: string; alt?: string; width?: string; height: string }\r\n | {\r\n light: string\r\n dark: string\r\n alt?: string\r\n width?: string\r\n height: string\r\n }\r\n```\r\n\r\nI refer to the render logic, use `v-html` render the icon.\r\nDisplay well in `dev` environment, but shows errors in `prod` environment.\r\n\r\n| dev | build |\r\n| ----------- | ----------- |\r\n|  |  |\r\n\r\n\r\n\r\n\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/github/zyyv/vitepress-unocss-issue\r\n\r\n- Display right run `pnpm dev`\r\n- Display error run `pnpm build && pnpm preview`\r\n\r\n### Expected behavior\r\n\r\nDev and build behave the same\r\n\r\n### System Info\r\n\r\n```Text\r\nlatest\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.",[2918,2921,2922],{"name":2919,"color":2920},"build","377ba8",{"name":2895,"color":2896},{"name":2871,"color":2872},4045,"SSR in dev for more consistent output in dev and prod","2025-03-02T18:08:58Z","https://github.com/vuejs/vitepress/issues/4045",0.7375808,{"description":2929,"labels":2930,"number":2935,"owner":2874,"repository":2875,"state":2876,"title":2936,"updated_at":2937,"url":2938,"score":2939},"### Describe the bug\n\nWhen using an env variable `VITE_COLOR` to change the color of a theme importing a different CSS file depending on that variable, the behavior seem to be correct during development, but not after build.\n\n### Reproduction\n\nMinimal reproducible example:\r\n\r\nhttps://github.com/Peque/vitepress-color-change\r\n\r\nThe repository has two commits:\r\n\r\n- [First commit](https://github.com/Peque/vitepress-color-change/commit/9353b5782a1aa08685fd341b5d8b2c5bd4cb92dd) is just a basic Vitepress template.\r\n- [Second commit](https://github.com/Peque/vitepress-color-change/commit/f291c8834b1f7e97fd8bf8c9105e47bb79d278cd) introduces the code to use different colors depending on the `VITE_COLOR` variable.\r\n\r\nDevelopment works as expected:\r\n\r\n- ✅ `VITE_COLOR=red npm run docs:dev` -> Red color \r\n- ✅ `VITE_COLOR=blue npm run docs:dev` -> Blue color\r\n\r\nBuilds do not work as expected when opening `http-serve`:\r\n\r\n- ✅ `VITE_COLOR=red npm run docs:build` -> Red color\r\n- ❌ `VITE_COLOR=blue npm run docs:build` -> **Red color**\n\n### Expected behavior\n\nDevelopment works as expected:\r\n\r\n- ✅ `VITE_COLOR=red npm run docs:dev` -> Red color \r\n- ✅ `VITE_COLOR=blue npm run docs:dev` -> Blue color\r\n\r\nBuilds do not work as expected when opening `http-serve`:\r\n\r\n- ✅ `VITE_COLOR=red npm run docs:build` -> Red color\r\n- ✅ `VITE_COLOR=blue npm run docs:build` -> **Blue color**\n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 6.10 Fedora Linux 39 (Container Image)\r\n CPU: (8) x64 Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz\r\n Memory: 9.52 GB / 15.54 GB\r\n Container: Yes\r\n Shell: 5.2.15 - /bin/bash\r\n Binaries:\r\n Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node\r\n npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm\r\n npmPackages:\r\n vitepress: ^1.3.4 => 1.3.4 \r\n```\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.",[2931,2934],{"name":2932,"color":2933},"bug: pending triage","e99695",{"name":2871,"color":2872},4222,"Inconsistent handling of env variable in dev and build","2024-10-26T17:17:17Z","https://github.com/vuejs/vitepress/issues/4222",0.73819524,{"description":2941,"labels":2942,"number":2945,"owner":2874,"repository":2875,"state":2876,"title":2946,"updated_at":2947,"url":2948,"score":2949},"### Describe the bug\r\n\r\n当我在使用动态路由的功能的时候,开发状态下是正常运行的,如下方的配置\r\n\r\n\r\n\r\n\r\n`export default {\r\n paths() {\r\n return [\r\n { params: { pkg: '../svgui/important/' }},\r\n { params: { pkg: '../toolkit/important/' }},\r\n ]\r\n }\r\n}`\r\n\r\n我在当前目录的上级中的两个目录中分别用当前的md文件生成了两个文件,开发环境一切正常。\r\n但打包之后,对应目录的文件生成了,但是内容却是404。\r\n\r\n### Reproduction\r\n\r\n无\r\n\r\n### Expected behavior\r\n\r\n希望能改进后,开发环境和生产环境表现一致。\r\n\r\n### System Info\r\n\r\n```Text\r\nnode 18.19 \r\nwindows\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.",[2943,2944],{"name":2932,"color":2933},{"name":2871,"color":2872},4200,"动态路由打包后遇到的bug,开发环境正常","2024-10-26T17:17:22Z","https://github.com/vuejs/vitepress/issues/4200",0.73839045,{"description":2951,"labels":2952,"number":2954,"owner":2874,"repository":2875,"state":2955,"title":2956,"updated_at":2957,"url":2958,"score":2959},"### Is your feature request related to a problem? Please describe.\n\n Algolia Search : transformItems not work.\r\n\r\n\r\n\r\n\r\n\n\n### Describe the solution you'd like\n\nI want http://hostname/prefix/guide/ -> http://hostname/guide/\r\n\n\n### Describe alternatives you've considered\n\n_No response_\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] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[2953],{"name":2868,"color":2869},614,"closed"," Algolia Search : transformItems not work","2023-01-21T14:16:55Z","https://github.com/vuejs/vitepress/issues/614",0.7111422,{"description":2961,"labels":2962,"number":2967,"owner":2874,"repository":2875,"state":2955,"title":2968,"updated_at":2969,"url":2970,"score":2971},"### Describe the bug\n\nHello, when I was searching using Algolia, the search results on the vitepress page were not displayed. However, Algolia's console page showed 140 records. Is this a missing configuration? By the way, for the project reason, I didn't use docsearch, but Algolia's build plan\n\n### Reproduction\n\nThe error can be seen on this website https://stackblitz.com/edit/vite-48o9dv?file=docs%2F.vitepress%2Fconfig.ts,package.json\r\nThis is the source code of the website https://github.com/galgaxy3/docs-demo\n\n### Expected behavior\n\nThere should be a query result\n\n### System Info\n\n```Text\nChrome, vitepress 1.0.0-rc.44\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.",[2963,2966],{"name":2964,"color":2965},"question","5D5FAE",{"name":2871,"color":2872},3614,"Algolia search result is empty","2024-04-28T12:24:52Z","https://github.com/vuejs/vitepress/issues/3614",0.72134167,{"description":2973,"labels":2974,"number":2976,"owner":2874,"repository":2875,"state":2955,"title":2977,"updated_at":2978,"url":2979,"score":2980},"### Describe the bug\n\nHello, I don't understand from the docs how an index should be built. If it is supposed to be automatically built, then it simply doesn't.\r\n\n\n### Reproduction\n\nJust set algolia following official docs.\n\n### Expected behavior\n\nSearch should provide results.\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 12.3.1\r\n CPU: (10) arm64 Apple M1 Pro\r\n Memory: 99.66 MB / 16.00 GB\r\n Shell: 5.8 - /bin/zsh\r\n Binaries:\r\n Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node\r\n Yarn: 1.22.15 - ~/.nvm/versions/node/v16.14.2/bin/yarn\r\n npm: 8.7.0 - ~/.nvm/versions/node/v16.14.2/bin/npm\r\n Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman\r\n Browsers:\r\n Chrome: 100.0.4896.127\r\n Firefox: 99.0.1\r\n Safari: 15.4\r\n npmPackages:\r\n vitepress: ^0.22.3 => 0.22.3\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.",[2975],{"name":2932,"color":2933},613,"[Algolia] Index creation","2023-01-21T14:35:51Z","https://github.com/vuejs/vitepress/issues/613",0.72590756,["Reactive",2982],{},["Set"],["ShallowReactive",2985],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fp-6SvTWe5UEJVPSoJTQQ9qKm89b1PjTW2fqo1x0BtEU":-1},"/vuejs/vitepress/580"]