starter icon indicating copy to clipboard operation
starter copied to clipboard

Issue with Favicon

Open Bohan-J opened this issue 10 months ago • 5 comments

I fork this repo and change favicon to my own one

   "favicon": {
      "dark": "/favicon-dark.png",
      "light": "/favicon-light.png"
   },

Here's my repo

The problem is: The favicon is replced and showed correctly on local development env. But once I publish the code, it goes wrong and keep using the default Mintlify facivon.

Online Url Here

Bohan-J avatar Feb 07 '25 06:02 Bohan-J

Hey, I ran into this exact issue, did you manage to find a fix?

AZubaidi avatar Feb 26 '25 18:02 AZubaidi

@Bohan-J I noticed that your docs site has your custom favicon now. Do you happen to know what fixed it?

Imti avatar Mar 13 '25 16:03 Imti

Changing from a favicon.ico to favicon.png fixed it for me. Just needed to deploy and wait a few minutes. Try clearing your browser cache or using a different browser completely to double check.

Imti avatar Mar 13 '25 16:03 Imti

https://mintlify.com/docs/settings#param-favicon suggests we can have both light and dark, but i get an error when I try to do this:

Invalid mint.json:
     #.favicon: Invalid type. Expected field to be of type 'string', received 'object' 

jswir avatar Aug 26 '25 18:08 jswir

Now the project doesn't use the mintlify default icon anymore, but I didn't do any changes. But still with some problem, it should use different icon in light/dark mode, while it always show the light mode favicon in dark mode right now.

Bohan-J avatar Aug 28 '25 03:08 Bohan-J