3

My React app is currently being served on a server by first building the React app, then using serve to serve the files.

cd path/to/reactapp
yarn build
serve -s build/ -l 80

However, when I do a git pull to get updates and then rebuild using yarn build command, going to the website URL will show a page of files.

enter image description here

What is the correct way to update/rebuild the React app and still avoid temporarily showing the page of files?

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Athena Wisdom
  • 6,101
  • 9
  • 36
  • 60
  • Have you tried adding `"homepage": "."` to package.json? Did you already solve the problem, how? – ahron Mar 15 '23 at 05:15

0 Answers0