AcadeDoc/apps/client/src/features/acadenice/database-view
Corentin aef912f9a4 fix(client): bridge same-origin proxy via Vite + dev token fallback — Patch 021
Cross-origin (5173 vs 4000) blocked the auth cookie from reaching the
bridge — every /database slash command request 401'd silently. Two
changes:

1. vite.config.ts: add /bridge -> http://localhost:4000 proxy with
   path rewrite + /bridge-events -> /api/events for SSE. Same-origin =
   browser sends the auth cookie automatically.
2. bridge-client.ts: resolveBridgeUrl() defaults to /bridge instead
   of absolute http://localhost:4000. Also adds a VITE_BRIDGE_TOKEN env
   fallback for dev (the bridge requires Bearer auth and the Docmost
   session cookie is HttpOnly so JS cannot read it).

Patch 021.
2026-05-08 12:32:33 +02:00
..
__tests__ feat(acadenice): add timeline view (Gantt) for databases — R4.1 2026-05-08 11:27:11 +02:00
components fix(acadenice): resolve test suite failures across R3 sub-blocks (Patch 017) 2026-05-08 10:36:19 +02:00
extension feat(acadenice): add timeline view (Gantt) for databases — R4.1 2026-05-08 11:27:11 +02:00
hooks feat(acadenice): add timeline view (Gantt) for databases — R4.1 2026-05-08 11:27:11 +02:00
renderers feat(acadenice): add timeline view (Gantt) for databases — R4.1 2026-05-08 11:27:11 +02:00
services fix(client): bridge same-origin proxy via Vite + dev token fallback — Patch 021 2026-05-08 12:32:33 +02:00
slash-command feat(acadenice): add timeline view (Gantt) for databases — R4.1 2026-05-08 11:27:11 +02:00
types feat(acadenice): add timeline view (Gantt) for databases — R4.1 2026-05-08 11:27:11 +02:00
index.ts feat(client): add database-view Tiptap extension for R3.1.c 2026-05-08 00:07:33 +02:00