Phoenix21 commited on
Commit
7c3d4cf
·
verified ·
1 Parent(s): 66acd60

Update src/main/resources/static/index.html

Browse files

That line is the one breaking in Spaces (hardcoded http://localhost:8080). Use a relative/same-origin URL so calls like ${API_BASE_URL}/health and ${API_BASE_URL}/message hit your container on port 7860. You can see the current line in your file here (search for API_BASE_URL).

src/main/resources/static/index.html CHANGED
@@ -332,7 +332,7 @@
332
 
333
  <script>
334
  // Configuration
335
- const API_BASE_URL = 'http://localhost:8080/api/chat';
336
 
337
  // DOM Elements
338
  const chatMessages = document.getElementById('chatMessages');
 
332
 
333
  <script>
334
  // Configuration
335
+ const API_BASE_URL = '/api/chat';
336
 
337
  // DOM Elements
338
  const chatMessages = document.getElementById('chatMessages');