diff --git a/crates/napi/src/next_api/project.rs b/crates/napi/src/next_api/project.rs index 8c76e94bfec13..d51739e98e04f 100644 --- a/crates/napi/src/next_api/project.rs +++ b/crates/napi/src/next_api/project.rs @@ -696,15 +696,15 @@ pub fn project_entrypoints_subscribe( .transpose()?, pages_document_endpoint: External::new(ExternalEndpoint(VcArc::new( turbo_tasks.clone(), - entrypoints.pages_document_endpoint, + *entrypoints.pages_document_endpoint, ))), pages_app_endpoint: External::new(ExternalEndpoint(VcArc::new( turbo_tasks.clone(), - entrypoints.pages_app_endpoint, + *entrypoints.pages_app_endpoint, ))), pages_error_endpoint: External::new(ExternalEndpoint(VcArc::new( turbo_tasks.clone(), - entrypoints.pages_error_endpoint, + *entrypoints.pages_error_endpoint, ))), }, issues: issues diff --git a/crates/next-api/src/global_module_id_strategy.rs b/crates/next-api/src/global_module_id_strategy.rs index 4b03bc94669c5..19ab3408bb1fb 100644 --- a/crates/next-api/src/global_module_id_strategy.rs +++ b/crates/next-api/src/global_module_id_strategy.rs @@ -26,9 +26,9 @@ impl GlobalModuleIdStrategyBuilder { let entrypoints = project.entrypoints().await?; - preprocessed_module_ids.push(preprocess_module_ids(entrypoints.pages_error_endpoint)); - preprocessed_module_ids.push(preprocess_module_ids(entrypoints.pages_app_endpoint)); - preprocessed_module_ids.push(preprocess_module_ids(entrypoints.pages_document_endpoint)); + preprocessed_module_ids.push(preprocess_module_ids(*entrypoints.pages_error_endpoint)); + preprocessed_module_ids.push(preprocess_module_ids(*entrypoints.pages_app_endpoint)); + preprocessed_module_ids.push(preprocess_module_ids(*entrypoints.pages_document_endpoint)); if let Some(middleware) = &entrypoints.middleware { preprocessed_module_ids.push(preprocess_module_ids(middleware.endpoint)); diff --git a/crates/next-api/src/project.rs b/crates/next-api/src/project.rs index 992551cb6a20e..7c436078c1dc6 100644 --- a/crates/next-api/src/project.rs +++ b/crates/next-api/src/project.rs @@ -533,9 +533,10 @@ impl Project { pub async fn app_project(self: Vc) -> Result> { let app_dir = find_app_dir(self.project_path()).await?; - Ok(Vc::cell(app_dir.map( - |app_dir: ResolvedVc| AppProject::new(self, *app_dir), - ))) + Ok(match *app_dir { + Some(app_dir) => Vc::cell(Some(AppProject::new(self, *app_dir).to_resolved().await?)), + None => Vc::cell(None), + }) } #[turbo_tasks::function]