Skip to content

Commit 888d357

Browse files
Update API URLs to use production environment
1 parent 321a201 commit 888d357

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

frontend/src/components/GameUI.jsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ import Board from './Board.jsx';
44

55

66
// --- (Constantes
7-
const API_URL = 'http://127.0.0.1:8000/api/move';
8-
const API_EXPLAIN_URL = 'http://127.0.0.1:8000/api/explain';
7+
//ACTIVAR SI DESEA LEVANTAR EN LOCAL
8+
//const API_URL = 'http://127.0.0.1:8000/api/move';
9+
//const API_EXPLAIN_URL = 'http://127.0.0.1:8000/api/explain';
10+
const API_URL = 'https://prologictoe-backend.onrender.com/api/move';
11+
const API_EXPLAIN_URL = 'https://prologictoe-backend.onrender.com/api/explain';
912
const PLAYER_HUMAN = 'o';
1013
const PLAYER_AI = 'x';
1114
const EMPTY_CELL = 'v';
@@ -292,4 +295,4 @@ export default function GameUI() {
292295
</button>
293296
</div>
294297
);
295-
}
298+
}

0 commit comments

Comments
 (0)