AcadeDoc/apps/client/src/features/acadenice/database-view
Corentin 5f7bce9b02 fix(client): read VITE_BRIDGE_TOKEN via process.env (define block target) — Patch 023
The previous fix (Patch 021) read import.meta.env.VITE_BRIDGE_TOKEN, but
Vite only auto-exposes VITE_* in import.meta.env when the .env lives in
apps/client/. Our .env is at the monorepo root and is loaded via
loadEnv() in vite.config.ts, then injected through the define block
under the 'process.env' key. So the runtime variable lives at
process.env.VITE_BRIDGE_TOKEN, not import.meta.env.VITE_BRIDGE_TOKEN.

Without this, the bridge proxy received no Bearer header and returned
401 Unauthorized for every /database slash command request — exactly
what Corentin reported.

Patch 023.
2026-05-08 12:34:38 +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): read VITE_BRIDGE_TOKEN via process.env (define block target) — Patch 023 2026-05-08 12:34:38 +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