From a4b105b4d99be0c64556d76f2458ea74b8c9cbb2 Mon Sep 17 00:00:00 2001 From: Floke Date: Wed, 31 Dec 2025 13:44:56 +0000 Subject: [PATCH] fix(gtm): Use relative API path to support subdirectory deployment --- gtm-architect/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtm-architect/App.tsx b/gtm-architect/App.tsx index d49ba120..d2c9e238 100644 --- a/gtm-architect/App.tsx +++ b/gtm-architect/App.tsx @@ -260,7 +260,7 @@ const App: React.FC = () => { }; const callBackend = async (mode: string, data: any) => { - const response = await fetch('/api/gtm', { + const response = await fetch('./api/gtm', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ mode, data })