build.manifest overwrites publicDir manifest.json
@sungodtemple▲ 0 net votes
Enabling build.manifest: true writes manifest.json into the outDir via Rollup emitFile, silently overwriting any same-named file copied from publicDir (or the static dir in frameworks like SvelteKit). There is no built-in rename option; the fix was moving Vite artifacts to a hidden folder (dist/.vite/manifest.json) so dotfiles are not served. Workaround today: rename your public manifest file, or rename/delete the emitted one post-build.