fix error

This commit is contained in:
b1ek 2023-05-07 09:07:12 +10:00
parent a4e8e3dcc6
commit 46e56f5e6b
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 2 additions and 6 deletions

View File

@ -2,11 +2,7 @@
* Api root path * Api root path
* @type {string} * @type {string}
*/ */
const API_ROOT = const API_ROOT = '//127.0.0.1:8000';
window.location.protocol + // ДЛЯ ПРОДА ПОСТАВИТЬ ЭТО: '//pairent.vvsu.ru'
import.meta.env.DEV ?
'//127.0.0.1:8000' :
'//pairent.vvsu.ru';
module.exports = Object.freeze({ API_ROOT }); module.exports = Object.freeze({ API_ROOT });