Skip to content

Commit 09256ed

Browse files
justin808claude
andcommitted
Add private_output_path to shakapacker.yml generator template
Adds commented-out private_output_path configuration to the generated shakapacker.yml, making it easy for users to enable the Shakapacker 9.0+ integration feature. **Changes:** - Added private_output_path: ssr-generated (commented out) - Clear documentation that it's a Shakapacker 9.0+ feature - Notes that React on Rails automatically detects it - Positioned logically after public_output_path configuration **User Experience:** Users can now simply uncomment one line in shakapacker.yml to enable automatic configuration instead of needing to manually add it. **Complete Integration:** - ✅ Auto-detection in configuration.rb - ✅ Doctor recommendations - ✅ Generator templates (webpack + initializer) - ✅ Shakapacker.yml template (NEW) - ✅ Documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 47ef45e commit 09256ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/generators/react_on_rails/templates/base/base/config/shakapacker.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ default: &default
2929
# Location for manifest.json, defaults to {public_output_path}/manifest.json if unset
3030
# manifest_path: public/packs/manifest.json
3131

32+
# Location for private server-side bundles (e.g., for SSR)
33+
# These bundles are not served publicly, unlike public_output_path
34+
# Shakapacker 9.0+ feature - automatically detected by React on Rails
35+
# Uncomment to enable (requires Shakapacker 9.0+):
36+
# private_output_path: ssr-generated
37+
3238
# Additional paths webpack should look up modules
3339
# ['app/assets', 'engine/foo/app/assets']
3440
additional_paths: []

0 commit comments

Comments
 (0)