Expose local Vite instance to the network

1 · Amit Merchant · June 7, 2022, 2:22 p.m.
When you have configured your web application development build using Vite, you might have set it up in your package.json like so. { "scripts": { "dev": "vite" } } Now, when you spin this dev instance up by running the npm run dev, here’s what the output might look like. As you can tell, the command will trigger a local instance at http://localhost:3000/. The --host option The Vite config Using --host in CLI Notice that, it also shows the following message. Network: use --ho...