milliHQ/terraform-aws-next-js-image-optimization

"url" parameter is not allowed

Closed this issue · 1 comments

Hi,

I am trying to integrate this module as part of the nextjs deployment. I think I followed all the steps of integration from both devops and nextjs side of the things. Upon testing, I keep getting a 400 error when accessing the image from the app.

Below is the format of the url the app is using. For a test I removed the url parameter and I get the error url parameter is required. I am wondering if the format of the URL is somehow bad and is causing this error, I tried a few alternatives but none work.

https://app.dev.domain.com/_next/image?url=https%3A%2F%2Fapp-images.dev.domain.com%2F8yU_PMyw9XzkI_tSxt3nsFU1sbcleOs5-test_385w_216h.webp&w=1920&q=75

Appreciate your time on this.

Thank you
Shyam

I figured out the issue, i looked at the handler code and it expects a relative path if base_origin is not specified.