File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -867,7 +867,11 @@ impl Project {
867
867
} => {
868
868
if !app_dir_only {
869
869
endpoints. push ( * html_endpoint) ;
870
- endpoints. push ( * data_endpoint) ;
870
+ // In development we want to include the data endpoint to support
871
+ // server side changes. See PACK
872
+ if self . next_mode ( ) . await ?. is_development ( ) {
873
+ endpoints. push ( * data_endpoint) ;
874
+ }
871
875
}
872
876
}
873
877
Route :: PageApi { endpoint } => {
Original file line number Diff line number Diff line change @@ -1824,7 +1824,7 @@ impl NextConfig {
1824
1824
NextMode :: Development => self
1825
1825
. experimental
1826
1826
. turbopack_use_production_chunking_in_dev
1827
- . unwrap_or ( false ) ,
1827
+ . unwrap_or ( true ) ,
1828
1828
NextMode :: Build => true ,
1829
1829
} ) )
1830
1830
}
@@ -1836,7 +1836,7 @@ impl NextConfig {
1836
1836
if self
1837
1837
. experimental
1838
1838
. turbopack_use_production_chunking_in_dev
1839
- . unwrap_or ( false )
1839
+ . unwrap_or ( true )
1840
1840
{
1841
1841
ChunkingStyle :: production ( )
1842
1842
} else {
You can’t perform that action at this time.
0 commit comments