Next Images are not working over HTTPS when using a custom server
Unanswered
American black bear posted this in #help-forum
American black bearOP
Images are not loading if I host my website on HTTPS. Everything works fine over HTTP.
The error occurs because Next is apparently trying to make a fetch request to 127.0.0.1:443? Getting the error
I am using a custom express.js server.
What am I doing wrong?
Please check the attached screenshot for a detailed description of the error.
The error occurs because Next is apparently trying to make a fetch request to 127.0.0.1:443? Getting the error
upstream image response failed for /images/sample/home-page-03-hero-image-tile-02.jpg TypeError: fetch failed in my server, and if you check the remoteAddress and remotePort properties of the error details, you'll understand that Next is trying to reach localhost:443.I am using a custom express.js server.
What am I doing wrong?
Please check the attached screenshot for a detailed description of the error.