Deploying Vite / React App to GitHub Pages
Just follow these simple steps:
1. Install the gh-pages package (ctrl+~ to open the terminal in VS Code)
npm install gh-pages --save-dev
2. In the package.json file add these lines before "build": "vite build",
"predeploy": "npm run build",
"deploy"...
rashidshamloo.hashnode.dev1 min read