You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The build manifest .vite/manifest.json is publicly downloadable / 构建清单 .vite/manifest.json 可被公开下载 #774
After npm run build, the asset output contains .cloudflare/output/v0/workers/default/assets/.vite/manifest.json.
With npm run preview, the app has no route for this path:
/.vite/manifest.json 200 application/json the client build manifest
Expected
The build manifest is not served to clients.
Analysis
createManifestLoader (void/dist/routing-assets-DJIVOrCh.mjs:36) reads globalThis.__VITE_MANIFEST__ first and falls back to ASSETS.fetch("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/.vite/manifest.json"). The build never sets __VITE_MANIFEST__, so the runtime depends on the manifest being a public asset.
A possible fix: inject the client manifest into the server bundle as __VITE_MANIFEST__ at build time, and stop deploying .vite/ as static assets.
Thanks for the issue. This is Vite’s documented behavior behavior though : enabling build.manifest writes .vite/manifest.json into the client build output.
There’s an existing upstream request to allow generating it outside that directory: vitejs/vite#19279
Note: Th manifest doesn’t contain secrets. The referenced client bundles are already publicly downloadable.
It is not a demonstrate a security vulnerability (although it makes the frontend structure a bit easier to inspect)
Is there a specific sensitivity issue in your case? More info would be helpful!
Activity
TheAlexLichter commentedon Nov 16, 2026
Thanks for the issue. This is Vite’s documented behavior behavior though : enabling
build.manifestwrites.vite/manifest.jsoninto the client build output.There’s an existing upstream request to allow generating it outside that directory: vitejs/vite#19279
Note: Th manifest doesn’t contain secrets. The referenced client bundles are already publicly downloadable.
It is not a demonstrate a security vulnerability (although it makes the frontend structure a bit easier to inspect)
Is there a specific sensitivity issue in your case? More info would be helpful!