File size: 323 Bytes
c993983
 
572b786
a75a3e6
c993983
 
 
a75a3e6
 
 
 
c993983
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import axios from 'axios';

const API_BASE = import.meta.env.VITE_API_BASE || '';
const API_KEY = import.meta.env.VITE_API_KEY || '';

const client = axios.create({
  baseURL: API_BASE,
  headers: { 
    'Content-Type': 'application/json',
    ...(API_KEY ? { 'X-API-Key': API_KEY } : {}),
  },
});

export default client;