Hi David, I use vite as a development server - it was not intended as a production server. When I build it for production, vite generates a set of static files that are more efficient, and I use Express to serve these files.
Here's a link to a YouTube video where I do that live on stage:
youtu.be/TEtr9-WRGvU
You can jump to minute 31 where I prepare the app for deployment and deploy it.