File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
packages/next/next-server/server Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,19 @@ function assignDefaults(userConfig: { [key: string]: any }) {
35
35
delete userConfig . exportTrailingSlash
36
36
}
37
37
38
+ if ( typeof userConfig . experimental ?. reactMode !== 'undefined' ) {
39
+ console . warn (
40
+ chalk . yellow . bold ( 'Warning: ' ) +
41
+ 'The experimental "reactMode" option has been replaced with "reactRoot". Please update your next.config.js.'
42
+ )
43
+ if ( typeof userConfig . experimental ?. reactRoot === 'undefined' ) {
44
+ userConfig . experimental . reactRoot = [ 'concurrent' , 'blocking' ] . includes (
45
+ userConfig . experimental . reactMode
46
+ )
47
+ }
48
+ delete userConfig . experimental . reactMode
49
+ }
50
+
38
51
const config = Object . keys ( userConfig ) . reduce < { [ key : string ] : any } > (
39
52
( currentConfig , key ) => {
40
53
const value = userConfig [ key ]
You can’t perform that action at this time.
0 commit comments