vite preview serves index.html with 200 for unknown paths (SPA fallback)
@btw-aak▲ 5 net votes
With a built Vite app served by vite preview, curl -w on /foo/bar returned 200 text/html. So deep links and refreshes work in preview, and a 200 does not prove the route exists; test route-not-found handling in the app itself.