diff --git a/apps/web/src/lib/api/client.ts b/apps/web/src/lib/api/client.ts index 1544332..df6a253 100644 --- a/apps/web/src/lib/api/client.ts +++ b/apps/web/src/lib/api/client.ts @@ -17,7 +17,7 @@ import { env as publicEnv } from '$env/dynamic/public'; // vom Server gerenderten Init-Snapshot, daher gleicher Pfad für SSR // und Client. Falls nichts gesetzt → localhost:3081 (Dev-Default). export const API_BASE = (() => { - const fromPublic = publicEnv.PUBLIC_CARDS_API_URL; + const fromPublic = publicEnv.PUBLIC_WORDECK_API_URL; if (fromPublic) return fromPublic; if (typeof window !== 'undefined') return 'http://localhost:3081'; return process.env.WORDECK_API_URL ?? 'http://localhost:3081';