Skip to content

Bug: vite start silently serves broken dev server #810

@gurza

Description

@gurza

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

  1. Run pnpm build && pnpm start
  2. Open http://localhost:5173/ - get a 404

Workaround

Change the script to "start": "vite preview".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions