Код: Выделить всё
server: {
proxy: {
'/api': {
target: 'http://nginx_backend:80',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
}
}
},
Код: Выделить всё
const apiClient = axios.create({
baseURL: '/api',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
},
});
Код: Выделить всё
export async function getDayAvailabilities(email: string, dayAsString: string, eventTypeId: number): Promise {
try {
const response = await apiClient.get(`/availability/day/?email=${email}&date=${dayAsString}&event_type_id=${eventTypeId}`);
return response.data;
} catch (error) {
console.error(error);
throw error;
}
}
reproduction
https://git.var-lab.com/opencal/opencal ... l/prontend /> Шаги по воспроизведению
Это можно воспроизвести, выполнив шаги настройки в чтении здесь https://git.var-lab.com/opencal/local-dev
Когда фиксации загружаются, Open http: //localhalhost/usert. А потом день. На панели инструментов отладки вы увидите, что Appens.
info
он работает в Docker, см. Https://git.var-mop.com/opencal/web-fro ... dockerfile> > pmag/h3> > pmag/h3>> pman/main/main/dockerfile> > pman/main/main/dockerfile alt = "" src = "https://i.sstatic.net/ot3zljza.png"/>
Подробнее здесь: https://stackoverflow.com/questions/796 ... red-target