In this lesson, you'll globally install the Netlify CLI and use its dev command to run your site locally. Netlify automatically detects if it's a Vite project!
Instructor: [0:00] To set up local dev for a React and TypeScript project created by Vite, we're going to be using Netlify Dev and the Netlify CLI. We're going to install that globally by running npm i -g. That's a global install of Netlify CLI at latest.
[0:18] We are now able to run the Netlify Dev command, which will open up our site in localhost:8888. This auto-detected that it's a Vite project, which allows us to very quickly set up a local development environment that simulates the Netlify production environment.