@@ -10,7 +10,7 @@ use turbo_rcstr::{RcStr, rcstr};
1010use turbo_tasks:: { Completion , FxIndexMap , ResolvedVc , Vc } ;
1111use turbo_tasks_bytes:: stream:: SingleValue ;
1212use turbo_tasks_env:: { CommandLineProcessEnv , ProcessEnv } ;
13- use turbo_tasks_fetch:: { FetchClient , HttpResponseBody } ;
13+ use turbo_tasks_fetch:: { FetchClientConfig , HttpResponseBody } ;
1414use turbo_tasks_fs:: {
1515 DiskFileSystem , File , FileContent , FileSystem , FileSystemPath ,
1616 json:: parse_json_with_source_context,
@@ -183,7 +183,7 @@ pub struct NextFontGoogleCssModuleReplacer {
183183 project_path : FileSystemPath ,
184184 execution_context : ResolvedVc < ExecutionContext > ,
185185 next_mode : ResolvedVc < NextMode > ,
186- fetch_client : ResolvedVc < FetchClient > ,
186+ fetch_client : ResolvedVc < FetchClientConfig > ,
187187}
188188
189189#[ turbo_tasks:: value_impl]
@@ -193,7 +193,7 @@ impl NextFontGoogleCssModuleReplacer {
193193 project_path : FileSystemPath ,
194194 execution_context : ResolvedVc < ExecutionContext > ,
195195 next_mode : ResolvedVc < NextMode > ,
196- fetch_client : ResolvedVc < FetchClient > ,
196+ fetch_client : ResolvedVc < FetchClientConfig > ,
197197 ) -> Vc < Self > {
198198 Self :: cell ( NextFontGoogleCssModuleReplacer {
199199 project_path,
@@ -376,13 +376,16 @@ struct NextFontGoogleFontFileOptions {
376376#[ turbo_tasks:: value( shared) ]
377377pub struct NextFontGoogleFontFileReplacer {
378378 project_path : FileSystemPath ,
379- fetch_client : ResolvedVc < FetchClient > ,
379+ fetch_client : ResolvedVc < FetchClientConfig > ,
380380}
381381
382382#[ turbo_tasks:: value_impl]
383383impl NextFontGoogleFontFileReplacer {
384384 #[ turbo_tasks:: function]
385- pub fn new ( project_path : FileSystemPath , fetch_client : ResolvedVc < FetchClient > ) -> Vc < Self > {
385+ pub fn new (
386+ project_path : FileSystemPath ,
387+ fetch_client : ResolvedVc < FetchClientConfig > ,
388+ ) -> Vc < Self > {
386389 Self :: cell ( NextFontGoogleFontFileReplacer {
387390 project_path,
388391 fetch_client,
@@ -670,7 +673,7 @@ fn font_file_options_from_query_map(query: &RcStr) -> Result<NextFontGoogleFontF
670673}
671674
672675async fn fetch_real_stylesheet (
673- fetch_client : Vc < FetchClient > ,
676+ fetch_client : Vc < FetchClientConfig > ,
674677 stylesheet_url : RcStr ,
675678 css_virtual_path : FileSystemPath ,
676679) -> Result < Option < Vc < RcStr > > > {
@@ -680,7 +683,7 @@ async fn fetch_real_stylesheet(
680683}
681684
682685async fn fetch_from_google_fonts (
683- fetch_client : Vc < FetchClient > ,
686+ fetch_client : Vc < FetchClientConfig > ,
684687 url : RcStr ,
685688 virtual_path : FileSystemPath ,
686689) -> Result < Option < Vc < HttpResponseBody > > > {
0 commit comments