Skip to content

Commit e358f72

Browse files
committed
fix output hash
1 parent ced312b commit e358f72

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

crates/next-api/src/routes_hashes_manifest.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ use turbopack_core::{
99
asset::{Asset, AssetContent},
1010
module::Module,
1111
module_graph::{GraphTraversalAction, ModuleGraph},
12-
output::{OutputAsset, OutputAssets, OutputAssetsReference},
12+
output::{
13+
ExpandOutputAssetsInput, OutputAsset, OutputAssets, OutputAssetsReference,
14+
expand_output_assets,
15+
},
1316
};
1417

1518
use crate::{
@@ -93,7 +96,16 @@ pub async fn endpoint_hashes(
9396
.try_join()
9497
.await?;
9598

96-
let output_assets = outputs.await?.output_assets.await?;
99+
let output_assets = expand_output_assets(
100+
outputs
101+
.await?
102+
.output_assets
103+
.await?
104+
.into_iter()
105+
.map(|asset| ExpandOutputAssetsInput::Asset(*asset)),
106+
true,
107+
)
108+
.await?;
97109
let outputs_hashes = output_assets
98110
.iter()
99111
.map(|asset| asset.content().hash())

0 commit comments

Comments
 (0)