Hi everyone, I’m encountering some difficulties de...
# aws
b
Hi everyone, I’m encountering some difficulties deploying my project with Next.js Image component.
Copy code
NextJS: v13.5.6
Node: v20
Locally, everything seems to be functioning smoothly,
Copy code
// sample image url
<http://localhost:3000/_next/image?url=/assets/images/sample.png&w=1920&q=75>
but upon deployment, I’m running into an error.
Copy code
// sample image url
<https://example.com/_next/image?url=/assets/images/sample.png&w=1920&q=75>

// response
"url" parameter is valid but upstream response is invalid
The Next.js Image component is not displaying images as expected. I’ve been referencing https://github.com/pulumi/examples/tree/master/aws-ts-nextjs throughout the process. Has anyone else faced similar challenges when deploying projects with Next.js Image? Any insights or troubleshooting tips would be greatly appreciated!
I found out there is a bug on the code sample. Here is the solution. Replace
Copy code
"BUCKET_NAME": bucket.arn,
With
Copy code
BUCKET_NAME: bucket.bucket,