You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this PR, we're automatically enabling `ppr` when `dynamicIO` is enabled, and forbid using `ppr: 'incremental'` or `ppr: false` together with `dynamicIO: true`.
While implementing the config validation, I noticed that the `userConfig`, `config`, and `result` objects in `assignDefaults` were untyped. This is fixed now.
Copy file name to clipboardExpand all lines: packages/next/errors.json
+2-1
Original file line number
Diff line number
Diff line change
@@ -679,5 +679,6 @@
679
679
"678": "CacheSignal got more endRead() calls than beginRead() calls",
680
680
"679": "A CacheSignal cannot subscribe to itself",
681
681
"680": "CacheSignal cannot be used in the edge runtime, because `dynamicIO` does not support it.",
682
-
"681": "Dynamic imports should not be instrumented in the edge runtime, because `dynamicIO` doesn't support it"
682
+
"681": "Dynamic imports should not be instrumented in the edge runtime, because `dynamicIO` doesn't support it",
683
+
"682": "\\`experimental.ppr\\` can not be \\`%s\\` when \\`experimental.dynamicIO\\` is \\`true\\`. PPR is implicitly enabled when Dynamic IO is enabled."
`\`experimental.ppr\` can not be \`${JSON.stringify(userConfig.experimental?.ppr)}\` when \`experimental.dynamicIO\` is \`true\`. PPR is implicitly enabled when Dynamic IO is enabled.`
1116
+
)
1117
+
}
1118
+
1119
+
result.experimental.ppr=true
1120
+
}
1121
+
1122
+
returnresultasNextConfigComplete
1099
1123
}
1100
1124
1101
1125
asyncfunctionapplyModifyConfig(
@@ -1401,10 +1425,9 @@ export default async function loadConfig(
1401
1425
// reactRoot can be updated correctly even with no next.config.js
0 commit comments