Skip to content

Commit

Permalink
Add environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pathak-ashutosh committed Feb 22, 2024
1 parent 6b1770a commit 5d55ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/axiosConfig.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 5d55ee2

Please sign in to comment.