From 2469b7676995a154e2fc30c8ccbbe8343c8a1a35 Mon Sep 17 00:00:00 2001 From: OpenSquared Date: Fri, 26 Jun 2026 15:00:56 +0200 Subject: [PATCH] fix: CalendarPage API calls use relative URLs (not localhost:8000) All fetch() calls now use relative paths (/api/eco/...) so nginx can proxy them to the backend container in production. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/pages/CalendarPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/CalendarPage.tsx b/frontend/src/pages/CalendarPage.tsx index 1ec46db..36804a0 100644 --- a/frontend/src/pages/CalendarPage.tsx +++ b/frontend/src/pages/CalendarPage.tsx @@ -77,7 +77,7 @@ const SORT_OPTIONS = [ { id: 'series', label: 'Série' }, ] -const API_BASE = 'http://localhost:8000' +const API_BASE = '' // ── Helpers ───────────────────────────────────────────────────────────────────