craigary / nobelium

A static blog build on top of Notion and NextJS, deployed on Vercel.
https://nobelium.js.org
MIT License
3k stars 1.97k forks source link

favicon.png got Bad request INVALID_IMAGE_OPTIMIZE_REQUEST #322

Closed toyo2333 closed 1 year ago

toyo2333 commented 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

toyo2333 commented 1 year ago

i know how to fix it。

That was cloudfront setting promblem。

see this:

https://github.com/vercel/next.js/issues/25121

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.