From f34cc187f24cd7adb2f0175aa36836abe5d9767d Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Fri, 12 Sep 2025 22:42:48 +0200 Subject: [PATCH] Fix jwt-token --- client/src/services/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/services/api.js b/client/src/services/api.js index 0801172..0ec5301 100644 --- a/client/src/services/api.js +++ b/client/src/services/api.js @@ -13,8 +13,8 @@ const getApiBaseUrl = () => { return 'http://localhost:3002/api'; } - // Otherwise, use the configured base path + /api - return `${APP_CONFIG.basePath}/api`; + // For production, use relative /api path + return '/api'; }; const API_BASE_URL = getApiBaseUrl();