Skip to content

Build SSR bundle in production + Hatchbox deployment guide#6

Merged
CasJam merged 2 commits into
mainfrom
bc/inspect-ssr-fix-commit
May 12, 2026
Merged

Build SSR bundle in production + Hatchbox deployment guide#6
CasJam merged 2 commits into
mainfrom
bc/inspect-ssr-fix-commit

Conversation

@CasJam
Copy link
Copy Markdown
Contributor

@CasJam CasJam commented May 12, 2026

Summary

  • Flip ssrBuildEnabled to true in config/vite.json so assets:precompile produces public/vite-ssr/ssr.js — without it, Inertia silently falls back to client-only rendering and crawlers see an empty <div id="app">.
  • Add docs/hatchbox-deployment-guide.md with a step-by-step reference: cluster setup, env vars (RAILS_MASTER_KEY, APP_HOST), database/domain config, the SSR Node process (bin/vite ssr on web), the Solid Queue jobs process (bin/jobs on worker), and post-deploy verification.

Test plan

  • Generate an app from this template and deploy to Hatchbox following the new guide
  • Confirm public/vite-ssr/ssr.js is produced during assets:precompile
  • View source on a public page in production and confirm <div id="app"> contains rendered HTML

🤖 Generated with Claude Code

Brian Casel and others added 2 commits May 12, 2026 16:36
Flip vite_ruby's ssrBuildEnabled to true so production deploys produce
public/vite-ssr/ssr.js. Without this, the Inertia Rails renderer silently
falls back to client-only rendering, leaving crawlers and LLM agents with
an empty <div id="app"> on public pages.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Quick reference covering cluster setup, env vars (RAILS_MASTER_KEY,
APP_HOST), database provisioning, domain config, the SSR Node process
(bin/vite ssr on the web role), the Solid Queue jobs process (bin/jobs
on the worker role), and post-deploy verification steps.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CasJam CasJam merged commit 0fa4499 into main May 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant