Main logic

This commit is contained in:
Микаэл Оганесян
2026-04-08 02:10:17 +03:00
parent 55742c1bbc
commit 68c3029835
58 changed files with 4807 additions and 418 deletions

15
proxy.conf.cjs Normal file
View File

@@ -0,0 +1,15 @@
/**
* Прокси для `ng serve`. Целевой backend задаётся в `.env` (SG_DEV_PROXY_TARGET).
*/
const path = require('path');
require('dotenv').config({ path: path.join(__dirname, '.env') });
const target = process.env.SG_DEV_PROXY_TARGET || 'http://sparkguardian.ru:8080';
module.exports = {
'/api/**': {
target,
secure: false,
changeOrigin: true,
},
};