usman-ai-dev commited on
Commit
9d4f60b
·
verified ·
1 Parent(s): 38bc0dc

Update frontend build dist with HF Space API endpoint

Browse files
frontend/.env.production ADDED
@@ -0,0 +1 @@
 
 
1
+ VITE_API_BASE_URL=https://usman-ai-dev-ai-code-maintainability-engine.hf.space
frontend/dist/assets/index-CsAM_gaa.js ADDED
The diff for this file is too large to render. See raw diff
 
frontend/dist/index.html CHANGED
@@ -10,7 +10,7 @@
10
  href="https://fonts.googleapis.com/css2?family=Orbitron:wght@600;800&family=JetBrains+Mono:wght@400;600&display=swap"
11
  rel="stylesheet"
12
  />
13
- <script type="module" crossorigin src="/assets/index-CnXjjhnJ.js"></script>
14
  <link rel="stylesheet" crossorigin href="/assets/index-Dn2xEIXT.css">
15
  </head>
16
  <body>
 
10
  href="https://fonts.googleapis.com/css2?family=Orbitron:wght@600;800&family=JetBrains+Mono:wght@400;600&display=swap"
11
  rel="stylesheet"
12
  />
13
+ <script type="module" crossorigin src="/assets/index-CsAM_gaa.js"></script>
14
  <link rel="stylesheet" crossorigin href="/assets/index-Dn2xEIXT.css">
15
  </head>
16
  <body>
frontend/src/api.ts CHANGED
@@ -16,7 +16,9 @@ export interface RefactorResult {
16
  iterations_run: number;
17
  }
18
 
19
- const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || "";
 
 
20
 
21
  async function post<T>(path: string, body: unknown): Promise<T> {
22
  const fullPath = `${API_BASE_URL}${path}`;
 
16
  iterations_run: number;
17
  }
18
 
19
+ const API_BASE_URL =
20
+ import.meta.env.VITE_API_BASE_URL ||
21
+ "https://usman-ai-dev-ai-code-maintainability-engine.hf.space";
22
 
23
  async function post<T>(path: string, body: unknown): Promise<T> {
24
  const fullPath = `${API_BASE_URL}${path}`;