File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1119,13 +1119,15 @@ export interface NextConfig {
1119
1119
* Add public (in browser) runtime configuration to your app
1120
1120
*
1121
1121
* @see [Runtime configuration](https://nextjs.org/docs/pages/api-reference/config/next-config-js/runtime-configuration
1122
+ * @deprecated Runtime config is deprecated and will be removed in Next.js 16.
1122
1123
*/
1123
1124
publicRuntimeConfig ?: { [ key : string ] : any }
1124
1125
1125
1126
/**
1126
1127
* Add server runtime configuration to your app
1127
1128
*
1128
1129
* @see [Runtime configuration](https://nextjs.org/docs/pages/api-reference/config/next-config-js/runtime-configuration
1130
+ * @deprecated Runtime config is deprecated and will be removed in Next.js 16.
1129
1131
*/
1130
1132
serverRuntimeConfig ?: { [ key : string ] : any }
1131
1133
Original file line number Diff line number Diff line change @@ -109,6 +109,19 @@ function checkDeprecations(
109
109
silent : boolean ,
110
110
dir : string
111
111
) {
112
+ warnOptionHasBeenDeprecated (
113
+ userConfig ,
114
+ 'publicRuntimeConfig' ,
115
+ `Runtime config is deprecated and the \`publicRuntimeConfig\` configuration option will be removed in Next.js 16.` ,
116
+ silent
117
+ )
118
+ warnOptionHasBeenDeprecated (
119
+ userConfig ,
120
+ 'serverRuntimeConfig' ,
121
+ `Runtime config is deprecated and the \`serverRuntimeConfig\` configuration option will be removed in Next.js 16.` ,
122
+ silent
123
+ )
124
+
112
125
if ( userConfig . experimental ?. dynamicIO !== undefined ) {
113
126
warnOptionHasBeenDeprecated (
114
127
userConfig ,
You can’t perform that action at this time.
0 commit comments