From fa5da8e9370c48fa7f90e8899e0a9d86234a5815 Mon Sep 17 00:00:00 2001 From: Till JS Date: Wed, 20 May 2026 13:25:56 +0200 Subject: [PATCH] fix(api): API_BASE liest PUBLIC_WORDECK_API_URL statt PUBLIC_CARDS_API_URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rebrand-Rest aus dem Cards-Cutover: client.ts las noch den alten PUBLIC_CARDS_API_URL, die Production-Compose exportiert aber PUBLIC_WORDECK_API_URL. Folge: das Web-Bundle fiel auf den Dev-Default localhost:3081 zurück und alle API-Calls liefen ins Leere (Deck-Liste, Marketplace). Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/web/src/lib/api/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';