diff --git a/crates/next-api/src/instrumentation.rs b/crates/next-api/src/instrumentation.rs index 77cfe57ae0678..93f518c31d299 100644 --- a/crates/next-api/src/instrumentation.rs +++ b/crates/next-api/src/instrumentation.rs @@ -48,9 +48,9 @@ pub struct InstrumentationEndpoint { impl InstrumentationEndpoint { #[turbo_tasks::function] pub fn new( - project: Vc, - asset_context: Vc>, - source: Vc>, + project: ResolvedVc, + asset_context: ResolvedVc>, + source: ResolvedVc>, is_edge: bool, app_dir: Option>, ecmascript_client_reference_transition_name: Option>, @@ -71,7 +71,7 @@ impl InstrumentationEndpoint { let userland_module = self .asset_context .process( - self.source, + *self.source, Value::new(ReferenceType::Entry(EntryReferenceSubType::Instrumentation)), ) .module() @@ -79,7 +79,7 @@ impl InstrumentationEndpoint { .await?; let edge_entry_module = wrap_edge_entry( - self.asset_context, + *self.asset_context, self.project.project_path(), *userland_module, "instrumentation".into(), @@ -117,7 +117,7 @@ impl InstrumentationEndpoint { }), this.project.next_mode(), ) - .resolve_entries(this.asset_context) + .resolve_entries(*this.asset_context) .await? .clone_value(); @@ -169,7 +169,7 @@ impl InstrumentationEndpoint { }), this.project.next_mode(), ) - .resolve_entries(this.asset_context), + .resolve_entries(*this.asset_context), OutputAssets::empty(), Value::new(AvailabilityInfo::Root), ) @@ -225,7 +225,7 @@ impl InstrumentationEndpoint { let mut output_assets = vec![chunk]; if this.project.next_mode().await?.is_production() { output_assets.push(ResolvedVc::upcast( - NftJsonAsset::new(this.project, *chunk, vec![]) + NftJsonAsset::new(*this.project, *chunk, vec![]) .to_resolved() .await?, )); diff --git a/crates/next-api/src/middleware.rs b/crates/next-api/src/middleware.rs index 988f2404037ac..dba4813259836 100644 --- a/crates/next-api/src/middleware.rs +++ b/crates/next-api/src/middleware.rs @@ -96,7 +96,7 @@ impl MiddlewareEndpoint { }), self.project.next_mode(), ) - .resolve_entries(self.asset_context) + .resolve_entries(*self.asset_context) .await? .clone_value(); @@ -261,7 +261,7 @@ impl MiddlewareEndpoint { fn userland_module(&self) -> Vc> { self.asset_context .process( - self.source, + *self.source, Value::new(ReferenceType::Entry(EntryReferenceSubType::Middleware)), ) .module()