added handling for .cofig via .env file

This commit is contained in:
2025-12-28 14:18:02 +01:00
parent 1c9cfd1d9b
commit 4aea3559e6
6 changed files with 38 additions and 27 deletions
-2
View File
@@ -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