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.md.
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: react_on_rails_pro/docs/configuration.md
Note: The Pro documentation is currently maintained separately in the
react_on_rails_prodirectory. We plan to migrate and consolidate Pro documentation into the main docs structure in a future PR for better discoverability and consistency.
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
endSee the Pro documentation for complete setup instructions.
Need Help?
- Pro Features: React on Rails Pro
- Consulting: [email protected]