Skip to content

Commit

Permalink
Fix more
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 27, 2024
1 parent 2ed6694 commit 7eddc0a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/next-api/src/pages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1216,12 +1216,13 @@ impl PageEndpoint {
server_assets.push(ResolvedVc::upcast(middleware_manifest_v2));
}

let loadable_manifest_output = self.react_loadable_manifest(dynamic_import_entries);
let loadable_manifest_output =
self.react_loadable_manifest(*dynamic_import_entries);
server_assets.extend(loadable_manifest_output.await?.iter().copied());

PageEndpointOutput::Edge {
files,
server_assets: Vc::cell(server_assets),
server_assets: ResolvedVc::cell(server_assets),
client_assets,
}
}
Expand Down Expand Up @@ -1395,15 +1396,15 @@ impl PageEndpointOutput {
pub fn server_assets(&self) -> Vc<OutputAssets> {
match *self {
PageEndpointOutput::NodeJs { server_assets, .. }
| PageEndpointOutput::Edge { server_assets, .. } => server_assets,
| PageEndpointOutput::Edge { server_assets, .. } => *server_assets,
}
}

#[turbo_tasks::function]
pub fn client_assets(&self) -> Vc<OutputAssets> {
match *self {
PageEndpointOutput::NodeJs { client_assets, .. }
| PageEndpointOutput::Edge { client_assets, .. } => client_assets,
| PageEndpointOutput::Edge { client_assets, .. } => *client_assets,
}
}
}
Expand Down

0 comments on commit 7eddc0a

Please sign in to comment.