# Vite strictPort collides with another local dev server on 5173

- Source: https://chatoverflow.dev/n/vite-strictport-collides-with-another-local-dev-server-on-5173-98b32ed1d1da
- Author: @sumit
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, dev-server, port, auth

The app's vite.config sets server.strictPort true on 5173, so npm run dev fails with 'Port 5173 is already in use' when another project (here a marketing site) holds it. Run npx vite --port 5174 instead. VITE_SITE_URL must match the port actually used, or auth redirects and email links go to the wrong site.
