\r\n````\n\n### Describe the solution you'd like\n\nExport `VPImage` as global `Image` component, see e.g. commit https://github.com/kleisauke/vitepress/commit/f1b6a57409f7752fc2142545340afc589cf091ff.\n\n### Describe alternatives you've considered\n\nI considered to use this:\r\n```html\r\n\u003Cpicture>\r\n \u003Csource srcset=\"/logo-dark.svg\" media=\"(prefers-color-scheme: dark)\" />\r\n \u003Cimg src=\"/logo.svg\" alt=\"Logo\" />\r\n\u003C/picture>\r\n```\r\n\r\nHowever, this approach wouldn't work if a user manually switches to dark mode.\n\n### Additional context\n\nI could open a PR for commit https://github.com/kleisauke/vitepress/commit/f1b6a57409f7752fc2142545340afc589cf091ff, if appropriate.\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] 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.",[2940,2941],{"name":2880,"color":2881},{"name":2883,"color":2884},2813,"Export `VPImage` as global component","2023-08-26T00:04:05Z","https://github.com/vuejs/vitepress/issues/2813",0.791503,{"description":2948,"labels":2949,"number":2951,"owner":2869,"repository":2870,"state":2871,"title":2952,"updated_at":2953,"url":2954,"score":2955},"### Describe the bug\n\nthe log setting dev works ,but build does't work\r\n\r\nthe code as\r\n\r\n```\r\nbase: \"./\",\r\n head: [['link', {rel: 'icon', href: '/assets/img/logo.png'}]],\r\n vite: {\r\n assetsInclude: ['assets']\r\n },\r\n title: \"FollowYourHeart\",\r\n description: \"LearningNote\",\r\n themeConfig: {\r\n logo: '/assets/img/logo.png',\r\n```\n\n### Reproduction\n\nthe code repo :\r\nhttps://github.com/zouyaowen/freewheeling\r\n\r\ndeploy address: https://freewheeling.top/\n\n### Expected behavior\n\n\u003Cimg width=\"608\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/20028367/9706d233-a7ef-458a-a904-84799f25e2bd\">\r\n\n\n### System Info\n\n```sh\nSystem:\r\n OS: Linux 4.18 CentOS Linux 8 (Core)\r\n CPU: (4) x64 Intel(R) Xeon(R) CPU E5-26xx v4\r\n Memory: 1.88 GB / 3.65 GB\r\n Container: Yes\r\n Shell: 4.4.20 - /bin/bash\r\n Binaries:\r\n Node: 18.16.0 - /usr/local/node-v18.16.0-linux-x64/bin/node\r\n npm: 9.5.1 - /usr/local/node-v18.16.0-linux-x64/bin/npm\r\n npmPackages:\r\n vitepress: ^1.0.0-beta.7 => 1.0.0-beta.7\n```\n\n\n### Additional context\n\nno\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.",[2950],{"name":2866,"color":2867},2745,"assects img for logo dev works,build result does't work","2023-08-15T00:04:13Z","https://github.com/vuejs/vitepress/issues/2745",0.79391754,{"description":2957,"labels":2958,"number":2960,"owner":2869,"repository":2870,"state":2871,"title":2961,"updated_at":2962,"url":2963,"score":2964},"### Describe the bug\n\nMy site is showing these two errors in the console:\n\n> A preload for 'https://.../assets/app.BXR81nYj.js' is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.\n\n> The resource https://.../assets/app.BXR81nYj.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.\n\nIs there a fix or workaround for this? The closest related issue I was able to find was https://github.com/vercel/next.js/discussions/16850\n\nI'm using vitepress v1.6.3.\n\n### Reproduction\n\nI wasn't able to reproduce the issue in vitepress.new or my local dev server -- these errors only show up on production when deployed to Cloudflare Pages.\n\n### Expected behavior\n\nNo errors should be shown.\n\n### System Info\n\n```Text\nSystem:\n OS: Linux 5.15 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)\n CPU: (16) x64 AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics\n Memory: 22.94 GB / 29.21 GB\n Container: Yes\n Shell: 5.2.21 - /bin/bash\n Binaries:\n Node: 22.12.0 - ~/.nvm/versions/node/v22.12.0/bin/node\n npm: 10.9.0 - ~/.nvm/versions/node/v22.12.0/bin/npm\n bun: 1.2.4 - ~/.bun/bin/bun\n npmPackages:\n vitepress: ^1.6.3 => 1.6.3\n```\n\n### Additional context\n\nWhen I first started using vitepress (a version before v1.5.0), I did not see any errors.\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.",[2959],{"name":2894,"color":2895},4714,"Compiled assets/app.js file found but not used errors","2025-04-23T04:40:05Z","https://github.com/vuejs/vitepress/issues/4714",0.7961298,["Reactive",2966],{},["Set"],["ShallowReactive",2969],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fmpJp6Yk5K9OfDJK_AI_ity3AvRheE2aAqKBhimRskFA":-1},"/vuejs/vitepress/1809"]