Skip to content

Commit 138befb

Browse files
ihabadhamclaude
andcommitted
Include RSC bundle in default webpack build
The default branch (no env vars) runs during bin/shakapacker for production/CI builds. Without the RSC config in the array, the RSC bundle only gets built when RSC_BUNDLE_ONLY is set (dev watchers). Production deploys + CI would miss it. The *_BUNDLE_ONLY gates remain for dev Procfile processes (each watcher builds one bundle in isolation). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b770daa commit 138befb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

config/webpack/webpackConfig.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ const webpackConfig = (envSpecific) => {
2828
console.log('[React on Rails] Creating only the RSC bundle.');
2929
result = rscWebpackConfig();
3030
} else {
31-
// default is the standard client and server build
3231
// eslint-disable-next-line no-console
33-
console.log('[React on Rails] Creating both client and server bundles.');
34-
result = [clientConfig, serverConfig];
32+
console.log('[React on Rails] Creating client, server, and RSC bundles.');
33+
result = [clientConfig, serverConfig, rscWebpackConfig()];
3534
}
3635

3736
// To debug, uncomment next line and inspect "result"

0 commit comments

Comments
 (0)