Skip to content

Commit 9e97c13

Browse files
committed
config api to get BASE_URL from env
1 parent 091421c commit 9e97c13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import axios from 'axios'
22

33
export default axios.create({
4-
baseURL: 'http://localhost:5001/api',
4+
baseURL: process.env.BASE_URL,
55
})

0 commit comments

Comments
 (0)