update api base
This commit is contained in:
parent
d1efe09236
commit
3472f203b9
@ -2,10 +2,10 @@ import axios from 'axios';
|
|||||||
import { logger } from './debugConfig';
|
import { logger } from './debugConfig';
|
||||||
|
|
||||||
// Use development backend URL if no custom URL is provided
|
// 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) {
|
if (!import.meta.env.VITE_API_BASE) {
|
||||||
logger.warn('axios', '⚠️ VITE_API_URL not set, defaulting to http://localhost:8080');
|
logger.warn('axios', '⚠️ VITE_API_BASE not set, defaulting to http://localhost:8080');
|
||||||
}
|
}
|
||||||
|
|
||||||
const instance = axios.create({
|
const instance = axios.create({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user