inertia-rails-ssr
Inertia Rails Server-Side Rendering (SSR)
Server-Side Rendering pre-renders JavaScript pages on the server, delivering fully rendered HTML to visitors. This improves SEO, enables faster initial page loads, and allows basic navigation even with JavaScript disabled.
When to Use SSR
- SEO-critical pages - Landing pages, blog posts, product pages
- Social sharing - Pages that need proper Open Graph meta tags
- Slow connections - Users see content before JavaScript loads
- Accessibility - Basic functionality without JavaScript
Requirements
- Node.js must be available on your server
- Vite Ruby for build configuration
@inertiajs/viteplugin (recommended for v3)
Recommended: Vite Plugin Setup (v3)
More from cole-robertson/inertia-rails-skills
inertia-rails-best-practices
Comprehensive best practices for Inertia Rails development. Use when writing, reviewing, or refactoring Inertia.js Rails applications with React, Vue, or Svelte frontends. Covers server-side setup, props management, forms, navigation, performance, security, and testing patterns.
72inertia-rails-performance
Optimize Inertia Rails application performance. Use when implementing code splitting, prefetching, deferred props, infinite scrolling, polling, or other performance optimizations.
58inertia-rails-auth
Implement authentication and authorization in Inertia Rails applications. Use when setting up login, sessions, permissions, and access control with Devise, has_secure_password, or other auth solutions.
56inertia-rails-forms
Build forms in Inertia Rails applications with proper validation, file uploads, and error handling. Use when implementing forms, handling validation errors, or working with file uploads in Inertia.js with Rails.
56inertia-rails-cookbook
Recipes and patterns for common Inertia Rails use cases. Includes modal dialogs, shadcn/ui integration, search with filters, wizard flows, and other advanced patterns.
56inertia-rails-testing
Test Inertia Rails applications with RSpec or Minitest. Use when writing tests for Inertia responses, components, props, flash messages, and partial reloads.
54