From 46e56f5e6bc6f7d036db300bdc8d12bf53b4e14c Mon Sep 17 00:00:00 2001 From: b1ek Date: Sun, 7 May 2023 09:07:12 +1000 Subject: [PATCH] fix error --- pairent_frontend_react/src/constants.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pairent_frontend_react/src/constants.js b/pairent_frontend_react/src/constants.js index 1555b96..8d1125d 100644 --- a/pairent_frontend_react/src/constants.js +++ b/pairent_frontend_react/src/constants.js @@ -2,11 +2,7 @@ * Api root path * @type {string} */ -const API_ROOT = - window.location.protocol + - - import.meta.env.DEV ? - '//127.0.0.1:8000' : - '//pairent.vvsu.ru'; +const API_ROOT = '//127.0.0.1:8000'; +// ДЛЯ ПРОДА ПОСТАВИТЬ ЭТО: '//pairent.vvsu.ru' module.exports = Object.freeze({ API_ROOT }); \ No newline at end of file