feat: use API base URL from env

This commit is contained in:
Kailasdevdas
2026-04-16 19:49:06 +05:30
parent 959440e1c6
commit 39e162f65c
5 changed files with 14 additions and 11 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import axios from "axios";
const api = axios.create({
baseURL: "http://localhost:3000/api",
baseURL: import.meta.env.VITE_API_URL,
});
api.interceptors.request.use((config) => {