From 01f2276aa8e7283cbff07bc03384a5423720744e Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Tue, 24 Mar 2026 13:47:13 -0700 Subject: [PATCH] fix(compose): correct NEXT_PUBLIC_* env var names per product code Each product web app reads different env var names in product-config.ts. The compose file was using generic NEXT_PUBLIC_BACKEND_URL and NEXT_PUBLIC_PLATFORM_URL for all 9 web services, but most products use different names. This caused SSR (server-side rendering) to miss the correct backend/platform URLs. Corrected per product: - lysnrai-dashboard: PLATFORM_SERVICE_URL (server-side, not NEXT_PUBLIC) - chronomind-web: NEXT_PUBLIC_BACKEND_URL + NEXT_PUBLIC_PLATFORM_SERVICE_URL - jarvisjr-web: NEXT_PUBLIC_PLATFORM_SERVICE_URL (no backend client) - flowmonk-web: NEXT_PUBLIC_PLATFORM_URL (backend is hardcoded) - notelett-web: NEXT_PUBLIC_NOTES_API_URL + NEXT_PUBLIC_PLATFORM_SERVICE_URL - mindlyst-web: NEXT_PUBLIC_PLATFORM_SERVICE_URL - nomgap-web: NEXT_PUBLIC_NOMGAP_API_URL + NEXT_PUBLIC_PLATFORM_SERVICE_URL - actiontrail-web: NEXT_PUBLIC_API_URL + NEXT_PUBLIC_PLATFORM_URL - localmemgpt-web: already correct (unchanged) --- docker-compose.ecosystem.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/docker-compose.ecosystem.yml b/docker-compose.ecosystem.yml index 02899956..13e552ae 100644 --- a/docker-compose.ecosystem.yml +++ b/docker-compose.ecosystem.yml @@ -534,8 +534,10 @@ services: environment: - NODE_ENV=production - PORT=3002 - - NEXT_PUBLIC_BACKEND_URL=http://lysnrai-backend:4015 - - NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003 + - PLATFORM_SERVICE_URL=http://platform-service:4003 + - ACTIONTRAIL_SERVICE_URL=http://actiontrail-backend:4018 + - NEXT_PUBLIC_PLATFORM_SERVICE_URL=http://platform-service:4003 + - NEXT_PUBLIC_PRODUCT_ID=lysnrai depends_on: lysnrai-backend: condition: service_healthy @@ -552,7 +554,7 @@ services: - NODE_ENV=production - PORT=3030 - NEXT_PUBLIC_BACKEND_URL=http://chronomind-backend:4011 - - NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003 + - NEXT_PUBLIC_PLATFORM_SERVICE_URL=http://platform-service:4003 depends_on: chronomind-backend: condition: service_healthy @@ -568,8 +570,7 @@ services: environment: - NODE_ENV=production - PORT=3035 - - NEXT_PUBLIC_BACKEND_URL=http://jarvisjr-backend:4012 - - NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003 + - NEXT_PUBLIC_PLATFORM_SERVICE_URL=http://platform-service:4003 depends_on: jarvisjr-backend: condition: service_healthy @@ -585,7 +586,6 @@ services: environment: - NODE_ENV=production - PORT=3040 - - NEXT_PUBLIC_BACKEND_URL=http://flowmonk-backend:4017 - NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003 depends_on: flowmonk-backend: @@ -602,8 +602,8 @@ services: environment: - NODE_ENV=production - PORT=3045 - - NEXT_PUBLIC_BACKEND_URL=http://notelett-backend:4016 - - NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003 + - NEXT_PUBLIC_NOTES_API_URL=http://notelett-backend:4016/api + - NEXT_PUBLIC_PLATFORM_SERVICE_URL=http://platform-service:4003/api depends_on: notelett-backend: condition: service_healthy @@ -619,8 +619,7 @@ services: environment: - NODE_ENV=production - PORT=3050 - - NEXT_PUBLIC_BACKEND_URL=http://mindlyst-backend:4014 - - NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003 + - NEXT_PUBLIC_PLATFORM_SERVICE_URL=http://platform-service:4003 depends_on: mindlyst-backend: condition: service_healthy @@ -636,8 +635,8 @@ services: environment: - NODE_ENV=production - PORT=3055 - - NEXT_PUBLIC_BACKEND_URL=http://nomgap-backend:4013 - - NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003 + - NEXT_PUBLIC_NOMGAP_API_URL=http://nomgap-backend:4013/api + - NEXT_PUBLIC_PLATFORM_SERVICE_URL=http://platform-service:4003/api depends_on: nomgap-backend: condition: service_healthy @@ -653,7 +652,7 @@ services: environment: - NODE_ENV=production - PORT=3060 - - NEXT_PUBLIC_BACKEND_URL=http://actiontrail-backend:4018 + - NEXT_PUBLIC_API_URL=http://actiontrail-backend:4018 - NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003 depends_on: actiontrail-backend: