Expose network in Vite

Published on: Saturday, 10.08.2024

When in dev use --host to expose your localhost for access on mobile (for testing) with Vite projects.

npm run dev -- --host

After that, you get access to local and network links that you can access on different devices.