Rename browser demo mount path from /demo to /voice-demo.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Xin Wang
2026-05-26 14:37:21 +08:00
parent d64a5315a5
commit 7ab10eba32
6 changed files with 8 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ class ServerConfig:
port: int = 8000
cors_origins: list[str] = field(default_factory=list)
serve_webpage: bool = True
webpage_mount: str = "/demo"
webpage_mount: str = "/voice-demo"
@dataclass(frozen=True)

View File

@@ -20,7 +20,7 @@ def get_config(path: str = "config.json") -> EngineConfig:
def _normalize_mount_path(path: str) -> str:
normalized = path.strip() or "/demo"
normalized = path.strip() or "/voice-demo"
if not normalized.startswith("/"):
normalized = f"/{normalized}"
return normalized.rstrip("/") or "/"