fix(web): use redoc@2.2.0 standalone bundle (v3 is ESM-only)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
GitHub
2026-06-12 17:06:54 +08:00
co-authored by Claude
parent 79c81cc3b6
commit de2b37e1e3
+1 -1
View File
@@ -114,7 +114,7 @@ def _create_app(
return get_redoc_html(
openapi_url=app.openapi_url or "/openapi.json",
title=app.title + " - ReDoc",
redoc_js_url="https://cdn.jsdelivr.net/npm/redoc@3.0.0-rc.0/bundle/redoc.js",
redoc_js_url="https://cdn.jsdelivr.net/npm/redoc@2.2.0/bundles/redoc.standalone.js",
)
# Store connection config in app.state for lifespan to use