AcadeDoc/apps
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
..
client fix(client): switch bridge token to import.meta.env (Vite auto-expose) — Patch 025 2026-05-08 12:44:18 +02:00
extension-clipper feat(acadenice): add sync blocks for cross-page content sharing — R4.2 2026-05-08 11:40:12 +02:00
server feat(acadedoc): replace EE Settings with open source UI (audit log, API keys, OIDC status) — R4.5 2026-05-08 12:24:00 +02:00