правка конфигурации

This commit is contained in:
Kayashov.SM
2025-11-29 14:53:33 +04:00
parent d9f5a32486
commit 1fdf084a25

View File

@@ -1,9 +1,9 @@
import axios from "axios"; import axios from "axios";
import {tokenUtil} from "./TokenUtil"; import {tokenUtil} from "./TokenUtil";
const host = "localhost:8080"; //дебаг вместе с беком // const host = "localhost:8080"; //дебаг вместе с беком
// const host = "192.168.1.100:8091"; //дебаг фронта // const host = "192.168.1.100:8091"; //дебаг фронта
// const host = "bar.kayashov.keenetic.pro"; //прод const host = "bar.kayashov.keenetic.pro"; //прод
export const api = () => { export const api = () => {
const result = axios; const result = axios;
result.defaults.baseURL = `${window.location.protocol}//${host}/`; result.defaults.baseURL = `${window.location.protocol}//${host}/`;