_next/image post deployment throws "url parameter is required" #65331
Labels
bug
Issue was opened via the bug report template.
Image (next/image)
Related to Next.js Image Optimization.
invalid link
The issue was auto-closed due to a missing/invalid reproduction link. A new issue should be opened.
Link to the code that reproduces this issue
https://github.com/vercel/next.js/blob/canary/packages/next/src/server/image-optimizer.ts
To Reproduce
I have configured parts of my application to use the next/future/image component in Next.js version 12.3.4. In my next.config.js, I have set up the image loader with the following configuration:
Issue:
Current vs. Expected behavior
Current Behavior:
Locally, the images render correctly in both development and production modes, as well as when using a Docker container.
After deploying the application to a server, the images are not being rendered.
The error message "url parameter is required" is displayed, even though the URL clearly contains the necessary parameters.
Expected Behavior:
Images should render correctly both locally and after deployment to the server.
The error message "url parameter is required" should not be displayed, and images should load without any issues.
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:19:22 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8112 Binaries: Node: 16.20.2 npm: 8.19.4 Yarn: N/A pnpm: N/A Relevant packages: next: 12.3.4 eslint-config-next: 11.1.4 react: 17.0.2 react-dom: 17.0.2
Which area(s) are affected? (Select all that apply)
Image (next/image)
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
I have tested this using the version: 12.3.4
The text was updated successfully, but these errors were encountered: