From cfd6daecf781273ca4ff7db28dd459e3fc289ea7 Mon Sep 17 00:00:00 2001 From: dreth Date: Fri, 26 Jul 2024 00:22:54 +0200 Subject: [PATCH] modify axios url so that in prod it makes requests locally within the container --- frontend/lib/api/axiosConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/lib/api/axiosConfig.js b/frontend/lib/api/axiosConfig.js index b2dfec2..d1c8bdd 100644 --- a/frontend/lib/api/axiosConfig.js +++ b/frontend/lib/api/axiosConfig.js @@ -2,7 +2,7 @@ import axios from 'axios'; let baseURL = 'http://localhost:8417'; if (process.env.ENVIRONMENT === 'production') { - baseURL = 'https://hbd.lotiguere.com/api'; + baseURL = 'https://127.0.0.1:8418'; } // Create an Axios instance