Commit 60c32986 authored by Tobias Koppers's avatar Tobias Koppers

Use asset_prefix_override instead of global asset_prefix for SSR chunking context

The global asset_prefix affects the runtime, making the two server chunking
contexts produce different runtimes. Using asset_prefix_override("client", ...)
instead matches the pattern in get_server_chunking_context, making the runtimes
identical between the two contexts.
Co-Authored-By: 's avatarClaude <noreply@anthropic.com>
parent b88ea60d
...@@ -1052,7 +1052,7 @@ pub async fn get_server_chunking_context_with_client_assets( ...@@ -1052,7 +1052,7 @@ pub async fn get_server_chunking_context_with_client_assets(
environment.to_resolved().await?, environment.to_resolved().await?,
next_mode.runtime_type(), next_mode.runtime_type(),
) )
.asset_prefix(Some(asset_prefix)) .asset_prefix_override(rcstr!("client"), asset_prefix)
.url_behavior_override( .url_behavior_override(
rcstr!("client"), rcstr!("client"),
UrlBehavior { UrlBehavior {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment