@@ -16,7 +16,6 @@ use turbopack_core::{
1616} ;
1717
1818use crate :: {
19- next_config:: NextConfig ,
2019 next_edge:: entry:: wrap_edge_entry,
2120 pages_structure:: { PagesStructure , PagesStructureItem } ,
2221 util:: { NextRuntime , file_content_rope, load_next_js_template, pages_function_name} ,
@@ -39,7 +38,6 @@ pub async fn create_page_ssr_entry_module(
3938 next_original_name : RcStr ,
4039 pages_structure : Vc < PagesStructure > ,
4140 runtime : NextRuntime ,
42- next_config : Vc < NextConfig > ,
4341) -> Result < Vc < PageSsrEntryModule > > {
4442 let definition_page = next_original_name;
4543 let definition_pathname = pathname;
@@ -99,11 +97,7 @@ pub async fn create_page_ssr_entry_module(
9997 let pages_structure_ref = pages_structure. await ?;
10098
10199 let ( injections, imports) = if is_page && runtime == NextRuntime :: Edge {
102- let next_config_val = & * next_config. await ?;
103100 let injections = vec ! [
104- // TODO do we really need to pass the entire next config here?
105- // This is bad for invalidation as any config change will invalidate this
106- ( "nextConfig" , serde_json:: to_string( next_config_val) ?) ,
107101 (
108102 "pageRouteModuleOptions" ,
109103 serde_json:: to_string( & get_route_module_options(
0 commit comments