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/src/server/config.ts
+14-7
Original file line number
Diff line number
Diff line change
@@ -374,11 +374,18 @@ function assignDefaults(
374
374
`Specified images.localPatterns should be an Array received ${typeofimages.localPatterns}.\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config`
375
375
)
376
376
}
377
-
// static import images are automatically allowed
378
-
images.localPatterns.push({
379
-
pathname: '/_next/static/media/**',
380
-
search: '',
381
-
})
377
+
// avoid double-pushing the same pattern if it already exists
0 commit comments