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
Copy file name to clipboardExpand all lines: packages/next/next-server/server/config.ts
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -220,20 +220,20 @@ function assignDefaults(userConfig: { [key: string]: any }) {
220
220
221
221
if(typeofimages!=='object'){
222
222
thrownewError(
223
-
`Specified images should be an object received ${typeofimages}`
223
+
`Specified images should be an object received ${typeofimages}.\nSee more info here: https://err.sh/nextjs/invalid-images-config`
224
224
)
225
225
}
226
226
227
227
if(images.domains){
228
228
if(!Array.isArray(images.domains)){
229
229
thrownewError(
230
-
`Specified images.domains should be an Array received ${typeofimages.domains}`
230
+
`Specified images.domains should be an Array received ${typeofimages.domains}.\nSee more info here: https://err.sh/nextjs/invalid-images-config`
231
231
)
232
232
}
233
233
234
234
if(images.domains.length>50){
235
235
thrownewError(
236
-
`Specified images.domains exceeds length of 50, received length (${images.domains.length}), please reduce the length of the array to continue`
236
+
`Specified images.domains exceeds length of 50, received length (${images.domains.length}), please reduce the length of the array to continue.\nSee more info here: https://err.sh/nextjs/invalid-images-config`
237
237
)
238
238
}
239
239
@@ -244,21 +244,21 @@ function assignDefaults(userConfig: { [key: string]: any }) {
244
244
thrownewError(
245
245
`Specified images.domains should be an Array of strings received invalid values (${invalid.join(
246
246
', '
247
-
)})`
247
+
)}).\nSee more info here: https://err.sh/nextjs/invalid-images-config`
248
248
)
249
249
}
250
250
}
251
251
if(images.deviceSizes){
252
252
const{ deviceSizes }=images
253
253
if(!Array.isArray(deviceSizes)){
254
254
thrownewError(
255
-
`Specified images.deviceSizes should be an Array received ${typeofdeviceSizes}`
255
+
`Specified images.deviceSizes should be an Array received ${typeofdeviceSizes}.\nSee more info here: https://err.sh/nextjs/invalid-images-config`
256
256
)
257
257
}
258
258
259
259
if(deviceSizes.length>25){
260
260
thrownewError(
261
-
`Specified images.deviceSizes exceeds length of 25, received length (${deviceSizes.length}), please reduce the length of the array to continue`
261
+
`Specified images.deviceSizes exceeds length of 25, received length (${deviceSizes.length}), please reduce the length of the array to continue.\nSee more info here: https://err.sh/nextjs/invalid-images-config`
262
262
)
263
263
}
264
264
@@ -270,21 +270,21 @@ function assignDefaults(userConfig: { [key: string]: any }) {
270
270
thrownewError(
271
271
`Specified images.deviceSizes should be an Array of numbers that are between 1 and 10000, received invalid values (${invalid.join(
272
272
', '
273
-
)})`
273
+
)}).\nSee more info here: https://err.sh/nextjs/invalid-images-config`
274
274
)
275
275
}
276
276
}
277
277
if(images.imageSizes){
278
278
const{ imageSizes }=images
279
279
if(!Array.isArray(imageSizes)){
280
280
thrownewError(
281
-
`Specified images.imageSizes should be an Array received ${typeofimageSizes}`
281
+
`Specified images.imageSizes should be an Array received ${typeofimageSizes}.\nSee more info here: https://err.sh/nextjs/invalid-images-config`
282
282
)
283
283
}
284
284
285
285
if(imageSizes.length>25){
286
286
thrownewError(
287
-
`Specified images.imageSizes exceeds length of 25, received length (${imageSizes.length}), please reduce the length of the array to continue`
287
+
`Specified images.imageSizes exceeds length of 25, received length (${imageSizes.length}), please reduce the length of the array to continue.\nSee more info here: https://err.sh/nextjs/invalid-images-config`
288
288
)
289
289
}
290
290
@@ -296,7 +296,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
296
296
thrownewError(
297
297
`Specified images.imageSizes should be an Array of numbers that are between 1 and 10000, received invalid values (${invalid.join(
298
298
', '
299
-
)})`
299
+
)}).\nSee more info here: https://err.sh/nextjs/invalid-images-config`
0 commit comments