\r\n \u003C/head>\r\n \u003Cbody>\r\n \u003Cp>Hello, world!\u003C/p>\r\n \u003C/body>\r\n\u003C/html>\r\n```\r\n\r\nThen run `npx vitepress dev`, open http://localhost:5173/, and click on the green \"foo\" button that appears. VitePress gives a 404 error page. Reload the page, and the correct HTML page should appear with the contents \"Hello, world!\"\r\n\r\nGo back to http://localhost:5173/, and this time open the green \"foo\" button's link in a new tab. Observe that the page is loaded correctly with no 404.\r\n\r\n### Expected behavior\r\n\r\nVitePress should load the page correctly when clicking the link to open it in the current tab.\r\n\r\n### System Info\r\n\r\n```\r\nSystem:\r\n OS: macOS 12.6.1\r\n CPU: (8) arm64 Apple M1\r\n Memory: 277.38 MB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node\r\n Yarn: 1.22.19 - ~/.yarn/bin/yarn\r\n npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm\r\n Browsers:\r\n Chrome: 108.0.5359.98\r\n Firefox: 90.0\r\n Safari: 16.1\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.30 => 1.0.0-alpha.30\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.",[],1685,"404 error when clicking link to public","2023-01-21T14:17:08Z","https://github.com/vuejs/vitepress/issues/1685",0.67811626,{"description":2918,"labels":2919,"number":2921,"owner":2871,"repository":2872,"state":2885,"title":2922,"updated_at":2923,"url":2924,"score":2925},"### Describe the bug\n\n\r\n\r\nhttps://github.com/vuejs/vitepress/blob/9004a801305fa0c21a0064253da95fbad38148fe/src/client/app/utils.ts#L38\r\n\r\nby \r\n\r\nhttps://github.com/vuejs/vitepress/blob/89cc718649b9be547c6ec08d2dc3d10a67f2a3ac/src/client/app/utils.ts#L38-L39\r\n\r\nshould fix this.\r\n\r\n_Originally posted by @brc-dd in https://github.com/vuejs/vitepress/issues/412#issuecomment-1149704365_\r\n \r\n\r\nI still have this problem\r\n\r\nvitepress version:1.0.0-alpha.26 or npm:@brc-dd/vitepress@1.0.0-dev.50d1202\r\n\r\nI try to configure `cleanUrls: 'with-subfolders'` or `cleanUrls:' without-subfolders'` or delete the cleanUrls configuration item makes no difference or is still reporting an error\r\n\r\nI will temporarily open my [repo](https://github.com/you-hengh/myblog_vitepress) to find bugs.\n\n### Reproduction\n\npackage.json\r\n```json\r\n{\r\n \"name\": \"vitepress\",\r\n \"version\": \"1.0.0\",\r\n \"description\": \"\",\r\n \"main\": \"index.js\",\r\n \"scripts\": {\r\n \"dev\": \"vitepress dev docs\",\r\n \"build\": \"vitepress build docs\",\r\n \"serve\": \"vitepress serve docs\"\r\n },\r\n \"keywords\": [],\r\n \"author\": \"\",\r\n \"license\": \"ISC\",\r\n \"devDependencies\": {\r\n \"@algolia/client-search\": \"^4.14.2\",\r\n \"vitepress\": \"npm:@brc-dd/vitepress@1.0.0-dev.50d1202\"\r\n }\r\n}\r\n```\r\n\r\n1. pnpm build\r\n\r\n ```bash\r\n > vitepress build docs\r\n\r\n vitepress v1.0.0-dev.50d1202\r\n ✓ building client + server bundles...\r\n ⠋ rendering pages...[Vue warn]: Component \u003CAnonymous> is missing template or render function.\r\n [Vue warn]: Component \u003CAnonymous> is missing template or render function.\r\n [Vue warn]: Component \u003CAnonymous> is missing template or render function.\r\n [Vue warn]: Component \u003CAnonymous> is missing template or render function.\r\n [Vue warn]: Component \u003CAnonymous> is missing template or render function.\r\n [Vue warn]: Component \u003CAnonymous> is missing template or render function.\r\n [Vue warn]: Component \u003CAnonymous> is missing template or render function.\r\n [Vue warn]: Component \u003CAnonymous> is missing template or render function.\r\n ✓ rendering pages...\r\n build complete in 3.35s.\r\n ```\r\n\r\n2. pnpm serve\r\n\r\n ```bash\r\n > vitepress@1.0.0 serve /Users/bddxg/Documents/网站/vitepress 站点\r\n > vitepress serve docs\r\n\r\n vitepress v1.0.0-dev.50d1202\r\n Built site served at http://localhost:4173/\r\n ```\r\n\r\n\n\n### Expected behavior\n\nfix bug or tell me the solution.\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 13.0\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 5.11 GB / 32.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.17.1 - ~/Library/pnpm/node\r\n npm: 8.15.0 - ~/Library/pnpm/npm\r\n Browsers:\r\n Chrome: 106.0.5249.119\r\n Safari: 16.1\r\n npmPackages:\r\n @brc-dd/vitepress: 1.0.0-dev.50d1202\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.",[2920],{"name":2894,"color":2895},1578,"vitepress serve tries to load an md.undefined.js file","2023-01-21T14:20:50Z","https://github.com/vuejs/vitepress/issues/1578",0.6944632,{"description":2927,"labels":2928,"number":2930,"owner":2871,"repository":2872,"state":2885,"title":2931,"updated_at":2932,"url":2933,"score":2934},"### Describe the bug\n\nI'geting a 404 error when I refresh a page deeper than the home ( '/' ) WHEN it is deployed. local test works fine. I have seen some closed issue describing the same issue but no clear workaround that I can follow was shown.\r\n\r\n\n\n### Reproduction\n\n- deploy a vite press app \r\n- Navigate to any link but the home page\r\n- refresh the page\n\n### Expected behavior\n\nRefresh should not get 404 error\n\n### System Info\n\n```sh\nSystem:\r\n OS: macOS 13.4.1\r\n CPU: (8) arm64 Apple M1 Pro\r\n Memory: 77.77 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 18.16.0 - /usr/local/bin/node\r\n npm: 9.7.2 - /usr/local/bin/npm\r\n pnpm: 8.6.12 - /usr/local/bin/pnpm\r\n Browsers:\r\n Brave Browser: 116.1.57.53\r\n Chrome: 116.0.5845.110\r\n Edge: 116.0.1938.62\r\n Safari: 16.5.2\n```\n\n\n### Additional context\n\nhere is my config file :\r\nimport { defineConfig } from 'vitepress'\r\n\r\n// https://vitepress.dev/reference/site-config \r\n// https://vitepress.dev/reference/default-theme-config\r\n\r\nexport default defineConfig({\r\n title: \"Weft Finance\",\r\n description: \"Lend and Borrow on Radix\",\r\n\r\n lastUpdated: true,\r\n cleanUrls: true,\r\n\r\n head: [\r\n ['link', { rel: 'icon', type: 'image/svg+xml', href: '/favicons/favicon.svg' }],\r\n ['link', { rel: 'icon', type: 'image/png', href: '/favicons/favicon.png' }],\r\n ],\r\n\r\n\r\n themeConfig: {\r\n\r\n\r\n logo: '/weft-logo.png',\r\n\r\n editLink: {\r\n pattern: 'https://github.com/WeftFinance/weft_docs/tree/main/content/:path',\r\n text: 'Edit this page on GitHub'\r\n },\r\n\r\n footer: {\r\n message: 'Released under the MIT License.',\r\n copyright: 'Copyright © 2023-present Weft Finance'\r\n },\r\n\r\n nav: [\r\n { text: 'Home', link: '/' },\r\n { text: 'Overview', link: '/overview' },\r\n ],\r\n\r\n\r\n sidebar: [\r\n {\r\n text: 'Weft Overview',\r\n link: '/overview',\r\n items: [\r\n {\r\n text: 'Description and core concepts',\r\n link: '/description'\r\n },\r\n {\r\n text: 'On-ledger components',\r\n link: '/components'\r\n },\r\n {\r\n text: 'Lending and Borrowing Operations',\r\n link: '/operations'\r\n },\r\n ]\r\n },\r\n {\r\n text: 'The WEFT Token',\r\n link: '/token',\r\n },\r\n {\r\n text: 'Revenue and Insurance module',\r\n link: '/revenue',\r\n },\r\n {\r\n text: 'Roadmap',\r\n link: '/roadmap',\r\n }\r\n\r\n ],\r\n\r\n socialLinks: [\r\n { icon: 'twitter', link: 'https://twitter.com/Weft_Finance' },\r\n { icon: 'github', link: 'https://github.com/WeftFinance' }\r\n ]\r\n }\r\n})\r\n\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.",[2929],{"name":2882,"color":2883},2869,"Error 404 on refresh","2023-09-05T00:04:07Z","https://github.com/vuejs/vitepress/issues/2869",0.696594,{"description":2936,"labels":2937,"number":2939,"owner":2871,"repository":2872,"state":2885,"title":2940,"updated_at":2941,"url":2942,"score":2943},"### Describe the bug\n\nHey i got a issue on my fresh installed vitepress..\nI can reload the main page \"index\" as often i want it works, but as soon i go into a \"docs\" page \"https://example.com/introduction/getting-started\" i get a HTTP ERROR 404 on reload everytime ..\ndoes someone know, why ?\n\n### Reproduction\n\nas soon i go into a \"docs\" page \"https://example.com/introduction/getting-started\" i get a HTTP ERROR 404 on reload everytime ..\n\n### Expected behavior\n\nReload page normal without issues.\n\n### System Info\n\n```Text\nSystem:\n OS: Linux 6.12 Debian GNU/Linux trixie/sid\n CPU: (2) x64 AMD EPYC 7543 32-Core Processor\n Memory: 3.20 GB / 3.84 GB\n Container: Yes\n Shell: 5.2.37 - /bin/bash\n Binaries:\n Node: 22.13.1 - /usr/bin/node\n npm: 11.0.0 - /usr/bin/npm\n pnpm: 10.0.0 - /usr/bin/pnpm\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.",[2938],{"name":2882,"color":2883},4518,"HTTP ERROR 404 on Page Reload","2025-02-02T04:41:48Z","https://github.com/vuejs/vitepress/issues/4518",0.6982597,{"description":2945,"labels":2946,"number":2948,"owner":2871,"repository":2872,"state":2885,"title":2949,"updated_at":2950,"url":2951,"score":2952},"**Describe the bug**\r\n\r\nSee https://github.com/songololo/vitepress-debug for reproduction of this issue:\r\n\r\nRun a dev server: `yarn docs:dev`.\r\n\r\nNote that the base-path `/my-base-path/` is set in the config at `.vitepress/config.js`.\r\n\r\nThe base path works for root files, i.e. `index.md` is served from `/my-base-path/`.\r\n\r\nHowever, the base path is missing for nested files, i.e. `content/index.md` is served from `/content/` and `content/hello.md` is served from `/content/hello.html`.\r\n\r\nThis doesn't break things in development mode because the links are also missing the base path.\r\n\r\nHowever, it breaks things in production because the links are missing the base path.\r\n\r\n**System Info**\r\n- vitepress 0.12.2\r\n- vite/2.0.4\r\n- darwin-x64\r\n- node-v15.8.0\r\n\r\nThis happens for both my local system and for a github actions build.",[2947],{"name":2894,"color":2895},252,"Base paths (and links) not generating correctly for nested pages.","2023-01-21T16:20:10Z","https://github.com/vuejs/vitepress/issues/252",0.70007735,{"description":2954,"labels":2955,"number":2959,"owner":2871,"repository":2872,"state":2885,"title":2960,"updated_at":2961,"url":2962,"score":2963},"**Describe the bug**\r\nIn dev mode symbolic links work just fine but building process fails with following errors:\r\n```\r\n$ vitepress build docs\r\nvitepress v0.9.2\r\nvite v1.0.0-rc.13\r\n✓ building client + server bundles...\r\n✖ rendering pages...\r\nbuild error:\r\n TypeError: Cannot read property 'imports' of undefined\r\n at resolvePageImports (/home/lromanowicz/projects/vitepress-issues/node_modules/vitepress/dist/node/build/render.js:74:68)\r\n at Object.renderPage (/home/lromanowicz/projects/vitepress-issues/node_modules/vitepress/dist/node/build/render.js:35:12)\r\n at async Object.build (/home/lromanowicz/projects/vitepress-issues/node_modules/vitepress/dist/node/build/build.js:29:17)\r\nerror Command failed with exit code 1.\r\n```\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n* add a directory with docs through a symbolic link\r\n\r\nhttps://github.com/lukeromanowicz/vitepress-issues/tree/issue/building-not-supporting-symbolic-links\r\n\r\n**Expected behavior**\r\nBuilding supports symbolic links just like dev mode does.\r\n\r\n**System Info**\r\n- vitepress version: 0.9.2\r\n- vite version: 1.0.0-rc.13 \r\n- Node version: 14LTS\r\n- OS version: Ubuntu 20\r\n",[2956],{"name":2957,"color":2958},"build","377ba8",184,"Build doesn't support symbolic links","2023-01-21T16:22:18Z","https://github.com/vuejs/vitepress/issues/184",0.7000985,["Reactive",2965],{},["Set"],["ShallowReactive",2968],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fE3m9_bWm0xOwMcdgnlT6l9CBYBn4cq-W-QImMblAklM":-1},"/vuejs/vitepress/221"]