Hatchbox automatically runs the assets:precompile step during deployment. The vite-ruby gem will hook into this task and automatically run afterwards so everything works out of the box. 🎉
See:
https://vite-ruby.netlify.app/guide/deployment.htmlIf you have disabled the asset pipeline (sprockets), you will have a few options:
- Add an empty "assets:precompile" task so vite-ruby can hook into it.
- Use a custom deploy script to run the vite commands to compile assets.
- Enable the asset pipeline so vite-ruby can hook into it.