Update: Route to /api

This commit is contained in:
dx-tan 2023-12-07 17:23:49 +07:00
parent d00ededd17
commit d385418022

View File

@ -2,11 +2,7 @@ import axios, { AxiosError, HttpStatusCode } from 'axios';
import { TOKEN_KEY } from '../consts';
import { getLocale } from '../i18n';
const BASE_PATH =
process.env.NODE_ENV === 'production'
? `${process.env.VITE_API_BASE_URL}/api`
: '/api';
const BASE_PATH = '/api';
export const API = axios.create({
baseURL: BASE_PATH,
withCredentials: false,