Fix API integration: proxy via Angular, date format, root redirect
CI / ci (push) Failing after 36s
Deploy / build-and-deploy (push) Failing after 5s

- Point API_BASE_URL to localhost:4200 (Angular's dev proxy) which
  correctly forwards to flights.test.aeroflot.ru with proper headers
- Convert URL date format (yyyyMMdd) to API format (yyyy-MM-ddT00:00:00)
  matching Angular's ApiFormatterService behavior
- Add standalone api-proxy.mjs script for running without Angular
- Root page redirect uses both loader and client-side navigate
- SignalR hub URL points to platform.yc.webzavod.ru/tracker/hub
- Remove broken server/modern-js.server.ts (proxy handled externally)
This commit is contained in:
2026-04-15 22:08:54 +03:00
parent 5fc67f81bd
commit e7c20c3d2d
16 changed files with 2478 additions and 29 deletions
+4 -1
View File
@@ -21,7 +21,9 @@
"typecheck": "tsc --noEmit",
"bundle-size": "node scripts/ci/bundle-size-gate.mjs",
"check-coverage": "node scripts/ci/check-coverage-delta.mjs",
"test:e2e": "playwright test"
"test:e2e": "playwright test",
"proxy": "node scripts/api-proxy.mjs",
"dev:full": "node scripts/api-proxy.mjs & pnpm dev"
},
"dependencies": {
"@microsoft/signalr": "^10.0.0",
@@ -67,6 +69,7 @@
"eslint-plugin-boundaries": "^5.0.0",
"eslint-plugin-unused-imports": "^4.0.0",
"fast-check": "^4.6.0",
"http-proxy-middleware": "^3.0.5",
"jsdom": "^29.0.2",
"react-test-renderer": "^19.2.5",
"sass": "^1.99.0",