Skip to content

Commit b3e2dd7

Browse files
committed
Configure the /manifest.json path for SPA and SSR
1 parent 33fb7de commit b3e2dd7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

gradio/routes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ async def conditional_routing_middleware(
371371
and not path.startswith("/static")
372372
and not path.startswith("/login")
373373
and not path.startswith("/logout")
374+
and not path.startswith("/manifest.json")
374375
):
375376
if App.app_port is None:
376377
App.app_port = request.url.port or int(

js/spa/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@
8080
src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"
8181
async
8282
></script>
83+
84+
<link rel="manifest" href="/manifest.json" />
8385
</head>
8486

8587
<body

0 commit comments

Comments
 (0)