react-gh-pages icon indicating copy to clipboard operation
react-gh-pages copied to clipboard

Tutorial does not indicate that Vite would store the build in `dist` instead of `build`

Open munyanezaarmel opened this issue 1 year ago • 2 comments

Explanation: In my case, I was using Vite to create my React app. So by running npm run deploy, vite created a 'dist' folder for the production. But "deploy": "gh-pages -d build" is watching for the build folder. Now gh-pages will look for dist folder before deployment.

I think the docs should be updated as many people are using vite now

munyanezaarmel avatar Jul 31 '23 13:07 munyanezaarmel

My man, I use vite too and had the same problem. Just solved it Use "dist" instead of "build" property in package.json Screenshot 2023-08-05 152604

Otcocuka avatar Aug 05 '23 12:08 Otcocuka

My my, I use vite too and had the same problem. Just solved it Use "dist" instead of "build" property in package.json Screenshot 2023-08-05 152604

You are a life saver... this should be noted somewhere in docs or resolved

ceotrammell avatar Nov 08 '23 06:11 ceotrammell