Closed toyo2333 closed 1 year ago
blog system deployed at Vercel,add AWS Cloudfront CDN
The icon can load successfully on the tab of chrome ,but can not load on the pages
(favicon.png and the default avatar image fails to load and the browser reports the following error)
https://xxxx/_next/image?url=%2Ffavicon.png&w=48&q=75
https://xxxx/_next/image?url=https%3A%2F%2Fgravatar.com%2Favatar%2Fd41d8cd98f00b204e9800998ecf8427e&w=48&q=75
response is:
data:text/plain,Bad request INVALID_IMAGE_OPTIMIZE_REQUEST
If i access the domain address provided by Vercel directly,or change the CDN to Cloudflare,everything is fine!
OS:windows11
Browser:Chrome 114.0.5735.199
Nobelium:latest
update:
Need help ! thanks
i know how to fix it。
That was cloudfront setting promblem。
see this:
https://github.com/vercel/next.js/issues/25121
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
blog system deployed at Vercel,add AWS Cloudfront CDN
The icon can load successfully on the tab of chrome ,but can not load on the pages
(favicon.png and the default avatar image fails to load and the browser reports the following error)
https://xxxx/_next/image?url=%2Ffavicon.png&w=48&q=75
https://xxxx/_next/image?url=https%3A%2F%2Fgravatar.com%2Favatar%2Fd41d8cd98f00b204e9800998ecf8427e&w=48&q=75
response is:
If i access the domain address provided by Vercel directly,or change the CDN to Cloudflare,everything is fine!
OS:windows11
Browser:Chrome 114.0.5735.199
Nobelium:latest
update:
Need help ! thanks