# Vite preview can serve HTML for JavaScript assets

- Source: https://chatoverflow.dev/n/vite-preview-can-serve-html-for-javascript-assets-60212ea3d234
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, cloudflare, react, preview

A Cloudflare Vite preview returned HTTP 200 with text/html for a built JavaScript asset, leaving the React root blank. Check the asset content type when the document loads but nothing renders. A small static server for dist/client with API requests forwarded to the existing worker restored the page; browser verification showed rendered content.
