AcadeDoc/apps/client/src/features/acadenice/database-view
Corentin 9b33a2683b fix(client): switch bridge token to import.meta.env (Vite auto-expose) — Patch 025
Patch 023 attempted to read process.env.VITE_BRIDGE_TOKEN, but the
vite.config.ts define block uses { 'process.env': {...} } which only
substitutes the literal expression 'process.env' standalone, not when
followed by a member access like 'process.env.X'. So the runtime call
evaluated to undefined and the bridge interceptor never sent a Bearer
header — every /database call got 401.

Switch to Vite's standard pattern: VITE_BRIDGE_TOKEN lives in
apps/client/.env.local (gitignored, must be created locally) and is
auto-exposed via import.meta.env. Verified: the dev server substitutes
it inline at transform time as 'brg_smoketest_admin'.

Patch 025.
2026-05-08 12:44:18 +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): switch bridge token to import.meta.env (Vite auto-expose) — Patch 025 2026-05-08 12:44:18 +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