Skip to content

Commit beeef93

Browse files
Fix: Configure API_BASE to point to backend server
1 parent 2eec13c commit beeef93

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

frontend/dist/runtime-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
window.__API_BASE__ = window.__API_BASE__ || '';
1+
window.__API_BASE__ = window.__API_BASE__ || 'https://api-myaichatbotproject.onrender.com';
22
window.__IS_OFFLINE__ = window.__IS_OFFLINE__ ?? (!window.__API_BASE__ && /(^|\.)github\.io$/i.test(window.location.hostname));

frontend/public/runtime-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
window.__API_BASE__ = window.__API_BASE__ || '';
1+
window.__API_BASE__ = window.__API_BASE__ || 'https://api-myaichatbotproject.onrender.com';
22
window.__IS_OFFLINE__ = window.__IS_OFFLINE__ ?? (!window.__API_BASE__ && /(^|\.)github\.io$/i.test(window.location.hostname));

runtime-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
window.__API_BASE__ = window.__API_BASE__ || '';
1+
window.__API_BASE__ = window.__API_BASE__ || 'https://api-myaichatbotproject.onrender.com';
22
window.__IS_OFFLINE__ = window.__IS_OFFLINE__ ?? (!window.__API_BASE__ && /(^|\.)github\.io$/i.test(window.location.hostname));

0 commit comments

Comments
 (0)