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
Operating System:
Platform: linux
Arch: x64
Version: #1 SMP PREEMPT_DYNAMIC Sun Aug 6 20:05:33 UTC 2023
Available memory (MB): 4102
Available CPU cores: 2
Binaries:
Node: 20.9.0
npm: 9.8.1
Yarn: 1.22.19
pnpm: 8.10.2
Relevant Packages:
next: 14.3.0-canary.70 // Latest available version is detected (14.3.0-canary.70).
eslint-config-next: N/A
react: 19.0.0-beta-04b058868c-20240508
react-dom: 19.0.0-beta-04b058868c-20240508
typescript: 5.1.3
Next.js Config:
output: N/A
Done in 2.08s.
Which area(s) are affected? (Select all that apply)
Image (next/image)
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
#52492 This pull request not just separated routing code from render servers, but changed how next/image requests are recognized. Before, using regex matched if there is /_next/image in path. But now parsedUrl.pathname needs explicitly to start with /_next/image. But when i18n is enabled in next config, now parsedUrl.pathname starts with /{locale}/{assetPrefix}/_next/image and fails parsedUrl.pathname.startsWith('/_next/image')
The text was updated successfully, but these errors were encountered:
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/friendly-montalcini-mc6sg6
To Reproduce
Current vs. Expected behavior
Image should be shown correctly.
Provide environment information
Which area(s) are affected? (Select all that apply)
Image (next/image)
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
#52492 This pull request not just separated routing code from render servers, but changed how next/image requests are recognized. Before, using regex matched if there is
/_next/image
in path. But nowparsedUrl.pathname
needs explicitly to start with/_next/image
. But when i18n is enabled in next config, nowparsedUrl.pathname
starts with/{locale}/{assetPrefix}/_next/image
and failsparsedUrl.pathname.startsWith('/_next/image')
The text was updated successfully, but these errors were encountered: