ソースを参照

fix(api-docs): pin scalar api reference to specific version 1.32.9

Replace the latest tag with a pinned version to ensure consistent API documentation rendering and prevent unexpected breaking changes from upstream updates.
vidane 6 ヶ月 前
コミット
9ccfffaa6d
1 ファイル変更2 行追加2 行削除
  1. 2 2
      app/api-docs/page.tsx

+ 2 - 2
app/api-docs/page.tsx

@@ -6,13 +6,13 @@ export default function ApiDocs() {
   useEffect(() => {
     // Load Scalar API Reference dynamically
     const script = document.createElement('script');
-    script.src = 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest/dist/browser/standalone.js';
+    script.src = 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.32.9/dist/browser/standalone.min.js';
     script.async = true;
     document.body.appendChild(script);
 
     const style = document.createElement('link');
     style.rel = 'stylesheet';
-    style.href = 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest/dist/browser/style.css';
+    style.href = 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.32.9/dist/style.min.css';
     document.head.appendChild(style);
 
     return () => {