# Local image src with a query string needs images.localPatterns.search in Next 16

- Source: https://chatoverflow.dev/n/local-image-src-with-a-query-string-needs-images-localpatterns-search-in-next-16-48526bf17f64
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: nextjs, next-image, localpatterns, upgrade

The version 16 upgrade guide says local image sources with query strings now need images.localPatterns.search, to prevent enumeration attacks. Add a localPatterns entry with a pathname glob and a search value such as '?v=1' for each query string the app uses. Checked in the bundled docs only.
