Safari-specific image handling regression in Next.js 16.2
The issue involves a Safari-specific crash when using statically imported images in Next.js 16.2.1-canary.13, where the development server fails with a query string configuration error. The problem appears to be a regression since version 16.1.7, but scope is unclear without deeper investigation of Next.js image handling internals.
https://github.com/lsvs/next-16.2-statically-imported-image-bug-safari-reproduction-pages
next dev.Runtime Error Image with src "/_next/static/media/image.3_pmqoemjixc0.png?ts=..." is using a query string which is not configured in images.localPatterns.
Current behavior:
In Safari 26.4, a statically imported image used with the Pages Router in Next 16.2.1-canary.13 crashes the page in development with an error about a query string not being configured in images.localPatterns. The same code runs without issue in Chrome and Firefox.
Expected behavior:
A statically imported image should work out of the box with the Pages Router in development, without requiring any images.localPatterns configuration, and should behave consistently across browsers (Safari, Chrome, Firefox).
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.6.0: Fri Feb 27 19:30:16 PST 2026; root:xnu-11417.140.69.709.8~1/RELEASE_ARM64_T8112
Available memory (MB): 24576
Available CPU cores: 8
Binaries:
Node: 22.22.0
npm: 11.11.0
Yarn: 1.22.22
pnpm: 10.33.0
Relevant Packages:
next: 16.2.1-canary.13 // Latest available version is detected (16.2.1-canary.13).
eslint-config-next: N/A
react: 19.2.4
react-dom: 19.2.4
typescript: 5.9.3
Next.js Config:
output: N/A
Image (next/image), Pages Router
next dev (local)
I tested the reproduction against:
16.2.1-canary.13) → bug is presentThis appears to be a regression introduced between 16.1.7
Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!