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
Enhance documentation: crystal clear changelog and configuration guide
CHANGELOG.md:
- Document all new server bundle security features
- Explain enhanced bundle path resolution with fallback logic
- Document public_bundles_full_path method naming improvement
- Clear categorization: New Features, API Improvements, Security Enhancements, Bug Fixes
docs/guides/configuration.md:
- Add comprehensive SERVER BUNDLE SECURITY AND ORGANIZATION section
- Document server_bundle_output_path with clear examples and defaults
- Explain enforce_private_server_bundles with security implications
- Add BUNDLE ORGANIZATION EXAMPLES section with:
* Clear client vs server bundle separation
* Directory structure examples
* API method references (public_bundles_full_path vs server_bundle_js_file_path)
This documentation makes the new features crystal clear for users upgrading
or configuring server bundle security for the first time.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,34 @@ After a release, please make sure to run `bundle exec rake update_changelog`. Th
23
23
24
24
Changes since the last non-beta release.
25
25
26
+
#### New Features
27
+
28
+
-**Server Bundle Security**: Added new configuration options for enhanced server bundle security and organization:
29
+
-`server_bundle_output_path`: Configurable directory for server bundle output (default: nil, uses fallback locations)
30
+
-`enforce_private_server_bundles`: When enabled, ensures server bundles are only loaded from private directories outside the public folder (default: false for backward compatibility)
31
+
32
+
-**Improved Bundle Path Resolution**: Enhanced bundle path resolution with better fallback logic that tries multiple locations when manifest lookup fails:
-`public_bundles_full_path`: New method specifically for webpack bundles in public directories
41
+
-`generated_assets_full_path`: Now deprecated (backwards-compatible alias)
42
+
- This eliminates confusion between webpack bundles and general Rails public assets
43
+
44
+
#### Security Enhancements
45
+
46
+
-**Private Server Bundle Enforcement**: When `enforce_private_server_bundles` is enabled, server bundles bypass public directory fallbacks and are only loaded from designated private locations
47
+
-**Path Validation**: Added validation to ensure `server_bundle_output_path` points to private directories when enforcement is enabled
48
+
49
+
#### Bug Fixes
50
+
51
+
-**Non-Packer Environment Compatibility**: Fixed potential NoMethodError when using bundle path resolution in environments without Shakapacker
52
+
-**Server Bundle Detection**: Improved server bundle detection to work correctly with both `server_bundle_js_file` and `rsc_bundle_js_file` configurations
Copy file name to clipboardExpand all lines: docs/guides/configuration.md
+55-3Lines changed: 55 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,17 +129,69 @@ ReactOnRails.configure do |config|
129
129
# This manifest file is automatically generated by the React Server Components Webpack plugin. Only set this if you've configured the plugin to use a different filename.
0 commit comments