Skip to content

Commit 428b1a7

Browse files
fix: (api.js) update API_BASE_URL to use environment variable for better configuration
1 parent e6953f2 commit 428b1a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/api.js

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

3-
const API_BASE_URL = "http://localhost:5001/api"
3+
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL
44

55
// Create axios instance
66
const api = axios.create({

0 commit comments

Comments
 (0)