Commit 76848def authored by Tobias Koppers's avatar Tobias Koppers

Fix type-safety: use ResolvedVc where required by callee signatures

- pages.rs: resolve project Vc before calling whole_app_module_graphs (requires ResolvedVc<Self>)
- project.rs: change runtime_chunking_context receiver to ResolvedVc<Self> to match edge/server_chunking_context
Co-Authored-By: 's avatarClaude <noreply@anthropic.com>
parent a676aa7e
...@@ -1744,7 +1744,7 @@ async fn get_pages_ssr_module_graph_operation( ...@@ -1744,7 +1744,7 @@ async fn get_pages_ssr_module_graph_operation(
endpoint: ResolvedVc<PageEndpoint>, endpoint: ResolvedVc<PageEndpoint>,
) -> Result<Vc<ModuleGraph>> { ) -> Result<Vc<ModuleGraph>> {
let this = endpoint.await?; let this = endpoint.await?;
let project = this.pages_project.project(); let project = this.pages_project.project().to_resolved().await?;
if *project.per_page_module_graph().await? { if *project.per_page_module_graph().await? {
let next_mode = project.next_mode(); let next_mode = project.next_mode();
......
...@@ -1614,7 +1614,7 @@ impl Project { ...@@ -1614,7 +1614,7 @@ impl Project {
#[turbo_tasks::function] #[turbo_tasks::function]
pub(super) fn runtime_chunking_context( pub(super) fn runtime_chunking_context(
self: Vc<Self>, self: ResolvedVc<Self>,
client_assets: bool, client_assets: bool,
runtime: NextRuntime, runtime: NextRuntime,
) -> Vc<Box<dyn ChunkingContext>> { ) -> Vc<Box<dyn ChunkingContext>> {
......
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