This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
cd NetflixGPT
pnpm install
pnpm run dev
pnpm run dev --host
"host": "vite --host"
write this in package.json below preview in scripts, thenpnpm run host
- In vite.config.js write
server: { host: true, }
after plugins