
How To Deploy Vite React App On Digitalocean App Platform
You can deploy vite react app on digitalocean app platform with a few easy steps.

If you create regular react app or next js app, It will be deployed on digitalocean without any additional steps but If you create your react app with vite you need to add a "start" command to your package.json file.
After you deploy your vite react app on Digitalocean app platform you will get error something like "start command not found".
Add a start command to your package json:
"start": "npx serve -s dist -l 8080"
Digitalocean will build your app so you don't need to add additional build command.
Serve npm package will help to serve your static generated files from vite react.
0
0