Skip to content

Commit 359d9c5

Browse files
committed
refactor: use unpkg AsyncAPI CDN
1 parent 1a3673d commit 359d9c5

File tree

1 file changed

+6
-2
lines changed
  • faststream/specification/asyncapi

1 file changed

+6
-2
lines changed

faststream/specification/asyncapi/site.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@
99
if TYPE_CHECKING:
1010
from faststream.specification import Specification
1111

12-
ASYNCAPI_JS_DEFAULT_URL = "https://cdn.jsdelivr.net/npm/@asyncapi/react-component@3.0.2/browser/standalone/index.min.js"
12+
ASYNCAPI_JS_DEFAULT_URL = (
13+
"https://unpkg.com/@asyncapi/react-component@3.0.2/browser/standalone/index.js"
14+
)
1315

1416
ASYNCAPI_CSS_DEFAULT_URL = (
1517
"https://unpkg.com/@asyncapi/react-component@3.0.2/styles/default.min.css"
1618
)
1719

1820

19-
ASYNCAPI_TRY_IT_PLUGIN_URL = "https://cdn.jsdelivr.net/npm/asyncapi-try-it-plugin@0.3.0-standalone.0/dist/index.iife.min.js"
21+
ASYNCAPI_TRY_IT_PLUGIN_URL = (
22+
"https://cdn.jsdelivr.net/npm/asyncapi-try-it-plugin@0.3.0-standalone.0/dist/index.iife.min.js"
23+
)
2024

2125

2226
def get_asyncapi_html(

0 commit comments

Comments
 (0)