Skip to content

pkayokay/inertia-rails-react-with-ssr

Repository files navigation

README

This is an example repo of a Rails and React app with InertiaJS, with server-side rendering enabled.

Deployment on Hatchbox

1. Add a new web process

  • kill -9 $(lsof -ti tcp:13714) 2>/dev/null kills the existing ssr server
  • bin/vite ssr starts up the server
Xnapper-2024-10-02-08 01 37 image

2. Update custom deployments scripts section

  • 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
image

About

Rails and React with Inertia.js with SSR enabled.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published