如图,我在代码里修改标题为Demo3333 浏览器发起了热重载请求,但是页面不会自动更新\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.",[3064],{"name":3035,"color":3036},4690,"热更新失效","2025-04-15T06:05:35Z","https://github.com/vuejs/vitepress/issues/4690",0.7208891,{"description":3071,"labels":3072,"number":3074,"owner":3024,"repository":3025,"state":3047,"title":3075,"updated_at":3076,"url":3077,"score":3078},"### Is your feature request related to a problem? Please describe.\r\n\r\nMy doc site has 1000+ api `.md` generated from source code, they are pure api spec, basically no difference between languages, the only locales I need to covered is a `guide` folder, so I can create different mds for `/guide`, `/zh/guide`, `/fr/guide` ... for different language info, which is a fine way to do that.\r\n\r\nBut for `api` folder,I have to create/duplicated `/zh/api`, `/ft/api` ... for all same `.md`, and there are over 1000 files for each locales. It is too much redundancy and hard to manage.\r\n\r\nA work around I used right now is to use the same nav/sidebar settings for different locales, e.g.\r\n```js\r\nlocales:{\r\n root:{\r\n nav: [{\r\n text: 'guide',\r\n items: [{\r\n text: 'gudie',\r\n link: '/guide/'\r\n }]\r\n },{\r\n text: 'api',\r\n items: [{\r\n text: 'api',\r\n link: '/api/'\r\n }]\r\n }]\r\n sidebar: {\r\n '/guide/': [...],\r\n '/api/': [...]\r\n }\r\n },\r\n zh: {\r\n nav: [{\r\n text: 'guide',\r\n items: [{\r\n text: 'gudie',\r\n link: '/zh/guide/'\r\n }]\r\n },{\r\n text: 'api',\r\n items: [{\r\n text: 'api',\r\n link: '/api/'\r\n }]\r\n }]\r\n sidebar: {\r\n '/zh/guide/': [...],\r\n '/api/': [...]\r\n }\r\n },\r\n fr: {\r\n nav: [{\r\n text: 'guide',\r\n items: [{\r\n text: 'gudie',\r\n link: '/fr/guide/'\r\n }]\r\n },{\r\n text: 'api',\r\n items: [{\r\n text: 'api',\r\n link: '/api/'\r\n }]\r\n }]\r\n sidebar: {\r\n '/fr/guide/': [...],\r\n '/api/': [...]\r\n }\r\n }\r\n}\r\n```\r\nbut this will redirect to the root locale on `/api` paths, which is not a perfect way.\r\n\r\n\r\nIs there a way to re-use `md` file in different locales, but still keep the route link? e.g. all `/api/`, `/zh/api/`, `/fr/api/` ... they are all point to a same `.md` in `api` folder?\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\nA map config to soft link path with target `md`?\r\nor expose a `md` transform function/hook to locate the source file?\r\n\r\n### Describe alternatives you've considered\r\n\r\n_No response_\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.dev).\r\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\r\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[3073],{"name":3021,"color":3022},2153,"Soft link mds in different locales?","2023-08-20T00:04:20Z","https://github.com/vuejs/vitepress/issues/2153",0.75482744,{"description":3080,"labels":3081,"number":3085,"owner":3024,"repository":3025,"state":3047,"title":3086,"updated_at":3087,"url":3088,"score":3089},"### Describe the bug\n\n\r\n\n\n### Reproduction\n\nhttps://github.com/meedfine/server-fs-allow.git\r\ntest win10,win11, it happened\r\n\r\n1. pnpm run docs\r\n2. visit http://localhost:5173/\r\n3.close\r\n4. pnpm run docs\r\nthen will happen,or retry 3,4\r\n\r\n\r\nhttps://user-images.githubusercontent.com/35157761/201807046-c6e534ae-722a-4149-86f0-aab839296381.mp4\r\n\r\n\n\n### Expected behavior\n\nwork well\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19043\r\n CPU: (4) x64 Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz\r\n Memory: 9.72 GB / 15.87 GB\r\n Binaries:\r\n Node: 16.14.2 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 8.5.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Chrome: 78.0.3904.108\r\n Edge: Spartan (44.19041.1266.0), Chromium (107.0.1418.42)\r\n Internet Explorer: 11.0.19041.1566\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.",[3082],{"name":3083,"color":3084},"build","377ba8",1608,"mono+dev+enhanceApp+fs.server.strict: sometimes run error","2023-01-21T14:20:33Z","https://github.com/vuejs/vitepress/issues/1608",0.7615004,{"description":3091,"labels":3092,"number":3096,"owner":3024,"repository":3025,"state":3047,"title":3097,"updated_at":3098,"url":3099,"score":3100},"related https://github.com/vuejs/vitepress/issues/303\r\n\r\nAdd Home Page feature for the new default theme.\r\n\r\nPlanning to follow frontmatter definition style as same as current VitePress.",[3093],{"name":3094,"color":3095},"theme","0754FB",630,"[next] Add Home Page feature","2023-01-21T16:04:22Z","https://github.com/vuejs/vitepress/issues/630",0.7650835,{"description":3102,"labels":3103,"number":3107,"owner":3024,"repository":3025,"state":3047,"title":3108,"updated_at":3109,"url":3110,"score":3111},"### Describe the bug\r\n\r\nI'm getting some errors when running `pnpm build`, I guess it's because I should somehow wrap this component causing the error in `\u003CClientOnly />`, but how should I find the exact cause from the error log? It does not provide any useful details (see below screenshot)\r\n\r\n---\r\n\r\nAnother question, as I guess my error is because of this:\r\nShould I wrap `watch()` inside `onMounted()`? or in another word, can I do it? I didn't find any corresponding example in Vue documentation... \r\nSorry if this is a dumb question, as I'm a react guy :(\r\n```vue\r\n\u003Cscript setup lang=\"ts\">\r\nimport { useLocalStorage } from '@vueuse/core';\r\nimport { watch } from 'vue';\r\n\r\nconst nfcapiEnvRef = useLocalStorage('vp-nfcapi-env', 'staging', {\r\n deep: false,\r\n listenToStorageChanges: true,\r\n writeDefaults: true\r\n});\r\n\r\nwatch(nfcapiEnvRef, (value, oldValue) => {\r\n const htmlDataSet = document.documentElement.dataset;\r\n oldValue && (htmlDataSet.nfcapiEnv = oldValue.toLowerCase());\r\n htmlDataSet.nfcapiEnv = value.toLowerCase();\r\n}, { immediate: true });\r\n\u003C/script>\r\n```\r\n\r\n---\r\n\r\nScreenshot of the error:\r\n\r\n\r\n\r\n\r\n\r\n### Reproduction\r\n\r\nThis is not a bug, but a question\r\n\r\n### Expected behavior\r\n\r\nN/A\r\n\r\n### System Info\r\n\r\n```sh\r\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz\r\n Memory: 30.87 GB / 63.84 GB\r\n Binaries:\r\n Node: 18.16.0 - C:\\NodeJS\\node.EXE\r\n Yarn: 1.22.19 - C:\\NodeJS\\yarn.CMD\r\n npm: 9.8.0 - C:\\NodeJS\\npm.CMD\r\n pnpm: 8.6.7 - C:\\NodeJS\\pnpm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (114.0.1823.82)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: ^1.0.0-beta.5 => 1.0.0-beta.5\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nN/A\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.",[3104],{"name":3105,"color":3106},"question","5D5FAE",2627,"How should I trace build error?","2023-07-24T00:04:51Z","https://github.com/vuejs/vitepress/issues/2627",0.7662015,{"description":3113,"labels":3114,"number":3116,"owner":3024,"repository":3025,"state":3047,"title":3117,"updated_at":3118,"url":3119,"score":3120},"### Describe the bug\n\n只是开启本地搜索未做任何更改\r\n\r\n\r\n\n\n### Reproduction\n\n\n\n### Expected behavior\n\n\n\n### System Info\n\n```shell\n\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.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3115],{"name":3035,"color":3036},2287,"貌似从7.3开始本地搜索报错","2023-05-05T00:04:14Z","https://github.com/vuejs/vitepress/issues/2287",0.77365893,["Reactive",3122],{},["Set"],["ShallowReactive",3125],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f-PPF7Bj2hPEFmDN_aTjX6qlV5U7LhEfOFLQXFFyFsvI":-1},"/vuejs/vitepress/4659"]