added handling for .cofig via .env file
This commit is contained in:
@@ -2,8 +2,6 @@ import axios from 'axios'
|
||||
|
||||
const API = axios.create({
|
||||
baseURL: import.meta.env.VITE_API_URL || 'http://localhost:8180', // Use env variable with fallback
|
||||
//baseURL: 'http://192.168.0.48:8180', // Replace with your backend URL
|
||||
//baseURL: 'http://localhost:8180', // Replace with your backend URL
|
||||
})
|
||||
|
||||
// Request interceptor to add auth token
|
||||
|
||||
Reference in New Issue
Block a user