You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update React on Rails to 16.1.1 and move SSR to private directory (#656)
Relocate server-side rendering bundles from public assets to a private
directory following React on Rails 16 security best practices.
Changes:
- Configure webpack to output server bundles to ssr-generated directory
- Update React on Rails config to use server_bundle_output_path setting
- Add ssr-generated and client/app/generated to .gitignore
- Move path require to top of file for proper code organization
Configuration:
- Uses React on Rails default path: ssr-generated
- Server bundle remains named server-bundle.js
- Client assets continue to output to public/packs
Security Impact:
- Server bundles are now isolated from publicly accessible assets
- Prevents potential exposure of server-only code and dependencies
- Follows React on Rails 16+ recommended security patterns
Compatibility:
- No breaking changes for existing deployments
- Server rendering continues to work transparently
- Client-side functionality unchanged
This change only affects the build output location for SSR bundles.
The application behavior remains identical, with improved security
by keeping server-only code separate from public web assets.
0 commit comments