Title: The build manifest .vite/manifest.json is publicly downloadable / 构建清单 .vite/manifest.json 可被公开下载 · Issue #774 · voidzero-dev/void · GitHub
Open Graph Title: The build manifest .vite/manifest.json is publicly downloadable / 构建清单 .vite/manifest.json 可被公开下载 · Issue #774 · voidzero-dev/void
X Title: The build manifest .vite/manifest.json is publicly downloadable / 构建清单 .vite/manifest.json 可被公开下载 · Issue #774 · voidzero-dev/void
Description: Problem The client build manifest .vite/manifest.json is deployed as a public static asset. Anyone can download it. Versions: void@1.7.0, @void/vue@1.7.0. Reproduction https://gist.github.com/wintercn/e0699d0ae6d343f198df8feaab5d6369 Aft...
Open Graph Description: Problem The client build manifest .vite/manifest.json is deployed as a public static asset. Anyone can download it. Versions: void@1.7.0, @void/vue@1.7.0. Reproduction https://gist.github.com/winte...
X Description: Problem The client build manifest .vite/manifest.json is deployed as a public static asset. Anyone can download it. Versions: void@1.7.0, @void/vue@1.7.0. Reproduction https://gist.github.com/winte...
Opengraph URL: https://github.com/voidzero-dev/void/issues/774
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The build manifest .vite/manifest.json is publicly downloadable / 构建清单 .vite/manifest.json 可被公开下载","articleBody":"## Problem\n\nThe client build manifest `.vite/manifest.json` is deployed as a public static asset. Anyone can download it.\n\nVersions: `void@1.7.0`, `@void/vue@1.7.0`.\n\n## Reproduction\n\nhttps://gist.github.com/wintercn/e0699d0ae6d343f198df8feaab5d6369\n\nAfter `npm run build`, the asset output contains `.cloudflare/output/v0/workers/default/assets/.vite/manifest.json`.\n\nWith `npm run preview`, the app has no route for this path:\n\n```\n/.vite/manifest.json 200 application/json the client build manifest\n```\n\n## Expected\n\nThe build manifest is not served to clients.\n\n## Analysis\n\n`createManifestLoader` (`void/dist/routing-assets-DJIVOrCh.mjs:36`) reads `globalThis.__VITE_MANIFEST__` first and falls back to `ASSETS.fetch(\"/.vite/manifest.json\")`. The build never sets `__VITE_MANIFEST__`, so the runtime depends on the manifest being a public asset.\n\nA possible fix: inject the client manifest into the server bundle as `__VITE_MANIFEST__` at build time, and stop deploying `.vite/` as static assets.\n\n---\n\n## 问题\n\n客户端构建清单 `.vite/manifest.json` 被部署为公开静态资源,任何人都能下载。\n\n版本:`void@1.7.0`、`@void/vue@1.7.0`。\n\n## 复现\n\nhttps://gist.github.com/wintercn/e0699d0ae6d343f198df8feaab5d6369\n\n执行 `npm run build` 后,静态资源输出中包含 `.cloudflare/output/v0/workers/default/assets/.vite/manifest.json`。\n\n执行 `npm run preview`,应用中没有匹配这个路径的路由:\n\n```\n/.vite/manifest.json 200 application/json 客户端构建清单\n```\n\n## 预期\n\n构建清单不向客户端提供。\n\n## 分析\n\n`createManifestLoader`(`void/dist/routing-assets-DJIVOrCh.mjs:36`)先读 `globalThis.__VITE_MANIFEST__`,没有时用 `ASSETS.fetch(\"/.vite/manifest.json\")` 读取。构建流程从不设置 `__VITE_MANIFEST__`,所以运行时依赖清单作为公开静态资源存在。\n\n可行的修法:构建时把客户端清单注入服务端包作为 `__VITE_MANIFEST__`,不再把 `.vite/` 部署为静态资源。\n","author":{"url":"https://github.com/wintercn","@type":"Person","name":"wintercn"},"datePublished":"2026-11-10T18:28:35Z","url":"https://github.com/voidzero-dev/void/issues/774"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2e221fde-c888-dcda-1843-6456514648ae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC02:73CE1:1B28149:24DC3A5:6AFB8E4D |
| html-safe-nonce | b5455092a7aa04033013c89d57c6aeac3802b6134efb7361dccffb46cdf713df |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzAyOjczQ0UxOjFCMjgxNDk6MjREQzNBNTo2QUZCOEU0RCIsInZpc2l0b3JfaWQiOiIxNTY0Nzk1ODk5Mjg2ODgzOTE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 47f800e59f64c70d3b971c68b01d1cad2551f074e4cbf5e8296dda045716a928 |
| hovercard-subject-tag | issue:6313232242 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/voidzero-dev/void/774/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4d6b46f7edaa0c7160e44ade6116e432e8ffa6aea81806a821b247775a2cdbd8/voidzero-dev/void/issues/774 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4d6b46f7edaa0c7160e44ade6116e432e8ffa6aea81806a821b247775a2cdbd8/voidzero-dev/void/issues/774 |
| og:image:alt | Problem The client build manifest .vite/manifest.json is deployed as a public static asset. Anyone can download it. Versions: void@1.7.0, @void/vue@1.7.0. Reproduction https://gist.github.com/winte... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wintercn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9694464143465782ecae2a97650b2a2b0708d5c31c74f41ee86da57e315e2735 |
| turbo-cache-control | no-preview |
| go-import | github.com/voidzero-dev/void git https://github.com/voidzero-dev/void.git |
| octolytics-dimension-user_id | 149750581 |
| octolytics-dimension-user_login | voidzero-dev |
| octolytics-dimension-repository_id | 1164437080 |
| octolytics-dimension-repository_nwo | voidzero-dev/void |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1164437080 |
| octolytics-dimension-repository_network_root_nwo | voidzero-dev/void |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 05d967182208691fc7f2e6af52e82fa7fabf6bd5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width