Skip to content

Commit

Permalink
Fix favicon in ssr mode (#9592)
Browse files Browse the repository at this point in the history
* Fix favicon

* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
freddyaboulton and gradio-pr-bot authored Oct 8, 2024
1 parent cc61fe7 commit 24fe222
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/thirty-insects-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@self/app": minor
"gradio": minor
---

feat:Fix favicon in ssr mode
2 changes: 1 addition & 1 deletion gradio/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ async def conditional_routing_middleware(
getattr(blocks, "node_process", None) is not None
and blocks.node_port is not None
and not path.startswith("/gradio_api")
and path not in ["/config", "/login"]
and path not in ["/config", "/login", "/favicon.ico"]
and not path.startswith("/theme")
):
if App.app_port is None:
Expand Down
2 changes: 1 addition & 1 deletion js/app/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
Expand Down
Binary file removed js/app/static/favicon.png
Binary file not shown.

0 comments on commit 24fe222

Please sign in to comment.