Skip to content

Commit d4281b7

Browse files
update backend API to frontend
1 parent a53e9b4 commit d4281b7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

frontend/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}(window.location));
1717
</script>
1818
<script src="./runtime-config.js"></script>
19-
<script type="module" crossorigin src="./assets/index-DjvJJquR.js"></script>
19+
<script type="module" crossorigin src="./assets/index-ZRLhGAqz.js"></script>
2020
<link rel="stylesheet" crossorigin href="./assets/index-BUdkLrW0.css">
2121
</head>
2222
<body>

frontend/src/config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ const envApiBase = normalizeBaseUrl(import.meta.env.VITE_API_BASE);
99
const hostname = typeof window !== 'undefined' ? window.location.hostname : '';
1010
const isLocalhost = /^(localhost|127\.0\.0\.1)$/i.test(hostname);
1111

12-
const fallbackApiBase = isLocalhost ? 'http://localhost:3001' : '';
12+
const fallbackApiBase = isLocalhost
13+
? 'http://localhost:3001'
14+
: 'https://api-myaichatbotproject.onrender.com';
1315
const configuredApiBase = runtimeApiBase || envApiBase || fallbackApiBase;
1416

1517
const runtimeOffline = typeof window !== 'undefined' ? window.__IS_OFFLINE__ : undefined;

0 commit comments

Comments
 (0)