This is an example repo of a Rails and React app with InertiaJS, with server-side rendering enabled.
kill -9 $(lsof -ti tcp:13714) 2>/dev/null
kills the existing ssr serverbin/vite ssr
starts up the server


- Add pre-build script clear the vite cache:
rm -rf tmp/cache/vite
- Add a post-build script to build your server-side bundle:
bin/vite build --ssr
