-
-
Notifications
You must be signed in to change notification settings - Fork 317
Bug: vite start silently serves broken dev server #810
Copy link
Copy link
Open
Description
Running vite start (as opposed to vite preview) after vite build starts a Vite dev server that returns 404 for all routes with no error or warning. Since start is not a recognized Vite CLI subcommand (Vite CLI docs), Vite silently falls back to the default dev command - but without proper TanStack Start SSR integration, every request gets a 404 with an empty body.
Steps to Reproduce
- Run
pnpm build && pnpm start - Open
http://localhost:5173/- get a 404
Workaround
Change the script to "start": "vite preview".
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels