diff --git a/src/axiosConfig.ts b/src/axiosConfig.ts index 362c7c5..68aedc6 100644 --- a/src/axiosConfig.ts +++ b/src/axiosConfig.ts @@ -2,10 +2,10 @@ import axios from 'axios'; import { logger } from './debugConfig'; // Use development backend URL if no custom URL is provided -const baseURL = import.meta.env.VITE_API_URL || 'http://localhost:8080'; +const baseURL = import.meta.env.VITE_API_BASE || 'http://localhost:8080'; -if (!import.meta.env.VITE_API_URL) { - logger.warn('axios', '⚠️ VITE_API_URL not set, defaulting to http://localhost:8080'); +if (!import.meta.env.VITE_API_BASE) { + logger.warn('axios', '⚠️ VITE_API_BASE not set, defaulting to http://localhost:8080'); } const instance = axios.create({