Skip to content

Commit 120198f

Browse files
Fixes LoginButton for SSR (#9880)
* test * add changeset * test * test * test * fix * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]>
1 parent d407c00 commit 120198f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/silver-planes-guess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gradio": patch
3+
---
4+
5+
fix:Fixes LoginButton for SSR

gradio/routes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,12 @@ async def conditional_routing_middleware(
364364
getattr(blocks, "node_process", None) is not None
365365
and blocks.node_port is not None
366366
and not path.startswith("/gradio_api")
367-
and path not in ["/config", "/login", "/favicon.ico"]
367+
and path not in ["/config", "/favicon.ico"]
368368
and not path.startswith("/theme")
369369
and not path.startswith("/svelte")
370370
and not path.startswith("/static")
371+
and not path.startswith("/login")
372+
and not path.startswith("/logout")
371373
):
372374
if App.app_port is None:
373375
App.app_port = request.url.port or int(

0 commit comments

Comments
 (0)