Spaces:
Sleeping
Sleeping
Update src/main/resources/static/index.html
Browse filesThat 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 = '
|
| 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');
|