fix(gtm): Use relative API path to support subdirectory deployment

This commit is contained in:
2025-12-31 13:44:56 +00:00
parent e770e78f1c
commit 97b8ee07d0

View File

@@ -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 })