wealth/platforms/market/src
Amiram_se ed6ddc05b1 feat(apps): call the API through a same-origin /api rewrite
- next.config rewrites /api/:path* to API_INTERNAL_ORIGIN, with a 120 s proxy timeout for uploads; NEXT_PUBLIC_API_ORIGIN is gone.
- The browser HTTP base is /api/v1; media, avatars and uploads load through /api (market env `apiBaseUrl`), so private media gets the session cookie.
- toApiUrl keeps a narrow rule for uploads stored with a host before the back end stored paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 21:47:18 +04:00
..
app refactor: code review 2026-10-06 17:12:50 +04:00
env feat(apps): call the API through a same-origin /api rewrite 2026-10-06 21:47:18 +04:00
features feat(apps): call the API through a same-origin /api rewrite 2026-10-06 21:47:18 +04:00
shared feat(apps): call the API through a same-origin /api rewrite 2026-10-06 21:47:18 +04:00
stores refactor: code review 2026-10-06 17:12:50 +04:00
index.ts feat(market): registration step 5, profile completion 2026-10-05 22:33:00 +04:00
server.ts refactor(market,apps): drop the session proxy and restore auth in the browser 2026-10-04 22:28:05 +04:00