React on Rails Pro Configuration Options
This document describes configuration options specific to React on Rails Pro features.
For general React on Rails configuration options, see Configuration.
React Server Components (RSC)
React Server Components and Streaming SSR are React on Rails Pro features.
For detailed configuration of RSC and streaming features, see the Pro package documentation: docs/pro/configuration.md
Key Pro Configurations
These options are configured in the ReactOnRailsPro.configure block:
rsc_bundle_js_file- Path to RSC bundlereact_client_manifest_file- Client component manifest for RSCreact_server_client_manifest_file- Server manifest for RSCenable_rsc_support- Enable React Server Components
Example Configuration
# config/initializers/react_on_rails_pro.rb
ReactOnRailsPro.configure do |config|
config.rsc_bundle_js_file = "rsc-bundle.js"
config.react_client_manifest_file = "client-manifest.json"
config.react_server_client_manifest_file = "server-manifest.json"
config.enable_rsc_support = true
end
See the Pro documentation for complete setup instructions.
Need Help?
- Pro Features: React on Rails Pro
- Consulting: justin@shakacode.com