` to the end of the markdown file, the problem will disappear. \n\n### Expected behavior\n\nIt must not duplicate the content after the script element. It works correctly in dev. \n\n### System Info\n\n```sh\n\"vitepress\": \"^1.0.0-beta.2\"\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.",[2912],{"name":2913,"color":2914},"has-workaround","1B4515",2506,"Markdown after custom element with codepen script is duplicated in production","2023-06-25T00:05:07Z","https://github.com/vuejs/vitepress/issues/2506",0.71477085,{"description":2921,"labels":2922,"number":2924,"owner":2866,"repository":2867,"state":2868,"title":2925,"updated_at":2926,"url":2927,"score":2928},"### Describe the bug\n\nyarn docs:dev\r\n\r\nBrowser display error:\r\n\r\n\n\n### Reproduction\n\nFollow the getting started case, which is https://vitepress.vuejs.org/guide/getting-started.html\n\n### Expected behavior\n\nNormal display index.md\n\n### System Info\n\n```shell\n~~~\r\nPS G:\\vitePress> npx envinfo --system --npmPackages vitepress --binaries --browsers\r\nNeed to install the following packages:\r\n envinfo\r\nOk to proceed? (y) y\r\n\r\n System:\r\n OS: Windows 10 10.0.17763\r\n CPU: (8) x64 Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz\r\n Memory: 3.91 GB / 7.93 GB\r\n Binaries:\r\n Node: 16.5.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.10 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 7.20.5 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Chrome: 92.0.4515.107\r\n Edge: Spartan (44.17763.831.0)\r\n Internet Explorer: 11.0.17763.771\r\n npmPackages:\r\n vitepress: ^0.15.6 => 0.15.6\r\n~~~\n```\n\n\n### Additional context\n\n\r\n\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/coc)\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.",[2923],{"name":2885,"color":2886},359,"Using the simplest example, an error occurred","2023-01-21T16:22:13Z","https://github.com/vuejs/vitepress/issues/359",0.71656454,{"description":2930,"labels":2931,"number":2935,"owner":2866,"repository":2867,"state":2868,"title":2936,"updated_at":2937,"url":2938,"score":2939},"### Describe the bug\r\n\r\nMainly described in the title, further description is at 4th point of reproducing the error. This is reproduced in normal python http server, and seems to happen in github pages as well.\r\n\r\nMight be related to #412, but I don't think its exactly the same behavior & cause.\r\n\r\n### Reproduction\r\n\r\n1. Download the repro and unzip, it should have the following content:\r\n\r\n```bash\r\n.\r\n├── content\r\n│ ├── first\r\n│ │ ├── index.md\r\n│ │ └── second.md\r\n│ └── index.md\r\n├── package.json\r\n└── yarn.lock\r\n```\r\n\r\n[vitepress-repro.zip](https://github.com/vuejs/vitepress/files/9575259/vitepress-repro.zip)\r\n\r\n\r\n2. Run `yarn && yarn run content:build`\r\n a `site` folder at project root should be created.\r\n4. Run `python3 -m http.server -d . 4000`, and lookup `localhost:4000/site`.\r\n Everything looks fine, you can navigate to First using navbar, and second.md file in first by left panel.\r\n5. Now refresh at the same `localhost:4000/site/first/second`.\r\n You should see the page is loaded but a 404 page is added at the bottom too, now if you try to navigate, the top of page remains as is, the bottom of page is instead replaced by the new content.\r\n\r\n### Expected behavior\r\n\r\nPage should not append a 404 page, nor it should load navigated pages in bottom of page instead of replacing current page.\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: Linux 5.18 Void\r\n CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz\r\n Memory: 3.97 GB / 7.56 GB\r\n Container: Yes\r\n Shell: 3.5.1 - /usr/bin/fish\r\n Binaries:\r\n Node: 16.15.1 - /usr/bin/node\r\n Yarn: 1.22.18 - /usr/bin/yarn\r\n npm: 8.11.0 - /usr/bin/npm\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nFull page screenshot\r\n\r\n\r\n\r\nTwo errors, in order appears in the browser's console:\r\n\r\n```\r\nFailed to load resource: the server responded with a status of 404 (File not found) :4000/site/assets/first_second_index.md.undefined.lean.js:1\r\n\r\nHydration completed but contains mismatches. app.558d10a0.js:1\r\n```\r\n\r\nPoint to be noted is that `first_second_index.md.undefined.lean.js` is trying to get fetched, i.e. the \"undefined\" hash.\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.",[2932],{"name":2933,"color":2934},"need more info","bdbefc",1345,"Built content when served manually (not `vitepress dev \u003Csrc>`) adds a 404 page at end of page, and later navigation loads the page there at bottom replacing 404 at the bottom.","2023-01-21T14:25:22Z","https://github.com/vuejs/vitepress/issues/1345",0.72818935,{"description":2941,"labels":2942,"number":2946,"owner":2866,"repository":2867,"state":2868,"title":2947,"updated_at":2948,"url":2949,"score":2950},"### Describe the bug\n\nany page which contains `process.env.NODE_ENV !== 'production'`, it will report 404 error\n\n### Reproduction\n\nstep 1: clone https://github.com/Alanscut/vitepress-demo\r\n\r\nstep 2: run the project\r\n\r\nstep 3: visit the page\r\n\r\n\n\n### Expected behavior\n\ncould visit the page normally, the page will show:\r\n\r\n\r\n\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) i7-7500U CPU @ 2.70GHz\r\n Memory: 7.05 GB / 15.90 GB\r\n Binaries:\r\n Node: 12.22.5 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.11 - E:\\npm\\repo\\yarn.CMD\r\n npm: 7.21.1 - ~\\node_modules\\.bin\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1023.0), Chromium (94.0.992.50)\r\n Internet Explorer: 11.0.19041.1202\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/coc)\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.",[2943],{"name":2944,"color":2945},"build","377ba8",419,"pages contains `process.env.NODE_ENV !== 'production'` report 404 error","2023-01-21T14:32:51Z","https://github.com/vuejs/vitepress/issues/419",0.7285616,{"description":2952,"labels":2953,"number":2955,"owner":2866,"repository":2867,"state":2868,"title":2956,"updated_at":2957,"url":2958,"score":2959},"### Describe the bug\n\nI was deploying my project with GitHub Pages as indicated in the documentation using a `deploy.sh` file and everything works correctly until I open my web from the GH pages link.\r\n\r\nHere a preview https://dev.adonys.me/vitepress/\r\n\r\nI am using a custom domain with CNAME which redirects me from https://dev.adonys.me to https://adonyssantos.github.io.\n\n### Reproduction\n\nThe only thing I did was to deploy the page with GitHub Page using a `deploy.sh` file as indicated in the official documentation.\n\n### Expected behavior\n\nI expected that when I enter my site from https://dev.adonys.me/vitepress to see my site correctly (no duplicate), but I enter and the same page is repeated 2 times.\n\n### System Info\n\n```shell\nMy vitepress config:\r\n\r\nexport default {\r\n base: '/vitepress/',\r\n title: 'Adonys Santos',\r\n description: 'Learning Vitepress.',\r\n};\n```\n\n\n### Additional context\n\nhttps://dev.adonys.me/vitepress/\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.",[2954],{"name":2933,"color":2934},845,"bug: Duplicate view when deployed with GitHub Pages","2023-01-21T14:30:24Z","https://github.com/vuejs/vitepress/issues/845",0.7287899,["Reactive",2961],{},["Set"],["ShallowReactive",2964],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fSCdOfGf3fdmWihv3gmIuSAzxvIaynPpKNU3NQNbsSMI":-1},"/vuejs/vitepress/1592"]