Deploy vite app as a web service

hey,

im trying to deploy a vite app in dev mode basically with a watcher so when i make changes and push to git, it watches those changes and are instantly able to preview at the preview link.

im currently trying to make a web service with a simple npm install build command and npm run dev --host 0.0.0.0 --port $PORT start command.