Skip to content

Commit 7f43c37

Browse files
committed
3
1 parent fc7b38d commit 7f43c37

File tree

1 file changed

+13
-48
lines changed

1 file changed

+13
-48
lines changed

crates/next-api/src/app.rs

+13-48
Original file line numberDiff line numberDiff line change
@@ -1699,43 +1699,6 @@ impl AppEndpoint {
16991699
let mut current_availability_info = AvailabilityInfo::Root;
17001700

17011701
let client_references = client_references.await?;
1702-
if !client_references.server_utils.is_empty() {
1703-
let span = tracing::trace_span!("server utils");
1704-
async {
1705-
let server_utils_chunk_group = module_graph
1706-
.chunk_group_info()
1707-
.get_merged_group(
1708-
ChunkGroup::Entry(
1709-
[ResolvedVc::upcast(rsc_entry)].into_iter().collect(),
1710-
),
1711-
NEXT_SERVER_UTILITY_MERGE_TAG.clone(),
1712-
)
1713-
.await?
1714-
.first()
1715-
.cloned()
1716-
.unwrap();
1717-
1718-
let chunk_group = chunking_context
1719-
.chunk_group(
1720-
AssetIdent::from_path(
1721-
this.app_project.project().project_path(),
1722-
)
1723-
.with_modifier(server_utils_modifier()),
1724-
server_utils_chunk_group,
1725-
module_graph,
1726-
Value::new(current_availability_info),
1727-
)
1728-
.await?;
1729-
current_chunks = current_chunks
1730-
.concatenate(*chunk_group.assets)
1731-
.resolve()
1732-
.await?;
1733-
current_availability_info = chunk_group.availability_info;
1734-
anyhow::Ok(())
1735-
}
1736-
.instrument(span)
1737-
.await?;
1738-
}
17391702
for server_component in client_references
17401703
.server_component_entries
17411704
.iter()
@@ -1775,21 +1738,23 @@ impl AppEndpoint {
17751738
.await?;
17761739
}
17771740

1778-
current_chunks = current_chunks
1779-
.concatenate(
1780-
chunking_context.chunk_group_assets(
1781-
server_action_manifest_loader.ident(),
1782-
ChunkGroup::Entry(
1783-
[ResolvedVc::upcast(server_action_manifest_loader)]
1784-
.into_iter()
1785-
.collect(),
1786-
),
1787-
module_graph,
1788-
Value::new(current_availability_info),
1741+
let chunk_group = chunking_context
1742+
.chunk_group(
1743+
server_action_manifest_loader.ident(),
1744+
ChunkGroup::Entry(
1745+
[ResolvedVc::upcast(server_action_manifest_loader)]
1746+
.into_iter()
1747+
.collect(),
17891748
),
1749+
module_graph,
1750+
Value::new(current_availability_info),
17901751
)
1752+
.await?;
1753+
current_chunks = current_chunks
1754+
.concatenate(*chunk_group.assets)
17911755
.resolve()
17921756
.await?;
1757+
current_availability_info = chunk_group.availability_info;
17931758

17941759
anyhow::Ok(Vc::cell(vec![
17951760
chunking_context

0 commit comments

Comments
 (0)