Thanks to Theangelofspace15 for pointing out a more "production" way to deploy this application by building the app and serving static assets with nginx in the Dockerfile. Take a look at the last commit in the repo: github.com/daniellaera/react-vite-docker-fly/commit/68758e8e9bf4429454ed10741e9d6e666e9b7705
Thank you for the video, actually I disagree with you when you run the app using npm run dev. But I would like to thank you for the killer note about configuring the server section inside the vite.configure.js file.
I actually used a simpler way as starting a dev server in the container; but your remark is correct so I pushed a correction and now we build the app and serve static assets with nginx. Thanks github.com/daniellaera/react-vite-docker-fly/commit/68758e8e9bf4429454ed10741e9d6e666e9b7705
5:32 it's dynamic with vite. You can npm run dev at 5173, if u uncomment ur code with port 8080, the server will change auto. You dont need to cancel server and reload npm run dev :)