New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
Everything works with npm run preview, then every asset 404s the moment the site goes live on GitHub Pages.
What you'll have at the end
A live site where every asset loads without a single 404 in the network tab
You need
A Vite project whose local preview already loads clean, connected to a GitHub repository you're ready to publish from.
Not covered
A single-page app's own routes returning a 404 on a direct visit or a refresh once client-side routing is added; that failure comes from the routing layer, not from a missing asset, and needs a fix of its own once you're building with a framework that owns real routes.
Checked 22 Aug 2026
Part of the Vite cookbook