File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ pub async fn get_edge_resolve_options_context(
123
123
) ] ;
124
124
if matches ! (
125
125
ty,
126
- ServerContextType :: Pages { .. }
126
+ ServerContextType :: Pages
127
127
| ServerContextType :: AppSSR { .. }
128
128
| ServerContextType :: AppRSC { .. }
129
129
) {
Original file line number Diff line number Diff line change @@ -742,7 +742,7 @@ async fn insert_next_server_special_aliases(
742
742
// the error which throws a runtime error. This works with in combination of
743
743
// build-time error as well, refer https://github.com/vercel/next.js/blob/0060de1c4905593ea875fa7250d4b5d5ce10897d/packages/next-swc/crates/next-core/src/next_server/context.rs#L103
744
744
match & ty {
745
- ServerContextType :: Pages { .. } => {
745
+ ServerContextType :: Pages => {
746
746
insert_exact_alias_map (
747
747
import_map,
748
748
project_path. clone ( ) ,
@@ -754,7 +754,7 @@ async fn insert_next_server_special_aliases(
754
754
} ,
755
755
) ;
756
756
}
757
- ServerContextType :: PagesApi { .. }
757
+ ServerContextType :: PagesApi
758
758
| ServerContextType :: AppRSC { .. }
759
759
| ServerContextType :: AppRoute { .. }
760
760
| ServerContextType :: Middleware { .. }
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ impl NextRootParamsMapper {
111
111
} ) ?;
112
112
Self :: valid_import_map_result ( collected_root_params)
113
113
}
114
- ServerContextType :: PagesApi { .. }
114
+ ServerContextType :: PagesApi
115
115
| ServerContextType :: Instrumentation { .. }
116
116
| ServerContextType :: Middleware { .. } => {
117
117
// There's no sensible way to use root params outside of the app
Original file line number Diff line number Diff line change @@ -638,7 +638,7 @@ pub async fn get_server_module_options_context(
638
638
639
639
let url_rewrite_behavior = Some (
640
640
//https://github.com/vercel/next.js/blob/bbb730e5ef10115ed76434f250379f6f53efe998/packages/next/src/build/webpack-config.ts#L1384
641
- if let ServerContextType :: PagesApi { .. } = ty {
641
+ if let ServerContextType :: PagesApi = ty {
642
642
UrlRewriteBehavior :: Full
643
643
} else {
644
644
UrlRewriteBehavior :: Relative
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ pub async fn get_next_server_internal_transforms_rules(
216
216
// Apply next/font transforms to foreign code
217
217
rules. push ( get_next_font_transform_rule ( mdx_rs) ) ;
218
218
}
219
- ServerContextType :: PagesApi { .. } => { }
219
+ ServerContextType :: PagesApi => { }
220
220
ServerContextType :: AppSSR { .. } => {
221
221
rules. push ( get_next_font_transform_rule ( mdx_rs) ) ;
222
222
}
You can’t perform that action at this time.
0 commit comments