Spaces:
Sleeping
Sleeping
Tristan Yu commited on
Commit ·
e53121c
1
Parent(s): c97fee1
FIXED: Remove /api from baseURL to prevent double /api issue
Browse files
client/src/services/api.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
import axios from 'axios';
|
| 2 |
|
| 3 |
// Create axios instance with base configuration
|
| 4 |
-
// FORCE REBUILD: Fixed double /api issue by
|
| 5 |
const api = axios.create({
|
| 6 |
-
baseURL:
|
| 7 |
headers: {
|
| 8 |
'Content-Type': 'application/json',
|
| 9 |
},
|
|
@@ -12,7 +12,7 @@ const api = axios.create({
|
|
| 12 |
|
| 13 |
// Debug: Log the API URL being used
|
| 14 |
console.log('🔧 API CONFIGURATION DEBUG - FIXED DOUBLE /API ISSUE:');
|
| 15 |
-
console.log('API Base URL:
|
| 16 |
console.log('Environment variables:', {
|
| 17 |
REACT_APP_API_URL: process.env.REACT_APP_API_URL,
|
| 18 |
NODE_ENV: process.env.NODE_ENV
|
|
|
|
| 1 |
import axios from 'axios';
|
| 2 |
|
| 3 |
// Create axios instance with base configuration
|
| 4 |
+
// FORCE REBUILD: Fixed double /api issue by removing /api from baseURL
|
| 5 |
const api = axios.create({
|
| 6 |
+
baseURL: 'https://linguabot-transcreation-backend.hf.space',
|
| 7 |
headers: {
|
| 8 |
'Content-Type': 'application/json',
|
| 9 |
},
|
|
|
|
| 12 |
|
| 13 |
// Debug: Log the API URL being used
|
| 14 |
console.log('🔧 API CONFIGURATION DEBUG - FIXED DOUBLE /API ISSUE:');
|
| 15 |
+
console.log('API Base URL: https://linguabot-transcreation-backend.hf.space');
|
| 16 |
console.log('Environment variables:', {
|
| 17 |
REACT_APP_API_URL: process.env.REACT_APP_API_URL,
|
| 18 |
NODE_ENV: process.env.NODE_ENV
|