Skip to content

Commit

Permalink
Disable RSC live reload in production. (#11119)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterp committed Jul 30, 2024
1 parent 3cdd09f commit 2bb5098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/streaming/streamHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export async function reactRenderToStreamResponse(
bootstrapScriptContent:
// Only insert assetMap if client side JS will be loaded
jsBundles.length > 0
? `window.__REDWOOD__ASSET_MAP = ${assetMap}; ${rscWebpackShims}; ${rscLiveReload};`
? `window.__REDWOOD__ASSET_MAP = ${assetMap}; ${rscWebpackShims}; ${isProd ? '' : rscLiveReload}`
: undefined,
bootstrapModules: jsBundles,
}
Expand Down

0 comments on commit 2bb5098

Please sign in to comment.