Update: Route to /api
This commit is contained in:
parent
d00ededd17
commit
d385418022
@ -2,11 +2,7 @@ import axios, { AxiosError, HttpStatusCode } from 'axios';
|
|||||||
import { TOKEN_KEY } from '../consts';
|
import { TOKEN_KEY } from '../consts';
|
||||||
import { getLocale } from '../i18n';
|
import { getLocale } from '../i18n';
|
||||||
|
|
||||||
const BASE_PATH =
|
const BASE_PATH = '/api';
|
||||||
process.env.NODE_ENV === 'production'
|
|
||||||
? `${process.env.VITE_API_BASE_URL}/api`
|
|
||||||
: '/api';
|
|
||||||
|
|
||||||
export const API = axios.create({
|
export const API = axios.create({
|
||||||
baseURL: BASE_PATH,
|
baseURL: BASE_PATH,
|
||||||
withCredentials: false,
|
withCredentials: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user