update api base

This commit is contained in:
Kevin Carter 2025-11-20 11:01:55 +00:00
parent d1efe09236
commit 3472f203b9

View File

@ -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({