From 5d55ee26e748575d86ad28796c49d1b9d4490d91 Mon Sep 17 00:00:00 2001 From: Ashutosh Pathak Date: Thu, 22 Feb 2024 14:28:47 -0500 Subject: [PATCH] Add environment variable --- frontend/src/axiosConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/axiosConfig.js b/frontend/src/axiosConfig.js index 71823fb..2e8e69a 100644 --- a/frontend/src/axiosConfig.js +++ b/frontend/src/axiosConfig.js @@ -1,7 +1,7 @@ import axios from 'axios'; const axiosInstance = axios.create({ - baseURL: 'http://localhost:3000/api', + baseURL: process.env.REACT_APP_API_URL, headers: { 'Authorization': 'Bearer ' + localStorage.getItem('token'), 'Content-Type': 'application/json'