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)
This commit is contained in:
parent
e928ec6025
commit
01f2276aa8
@ -534,8 +534,10 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=3002
|
- PORT=3002
|
||||||
- NEXT_PUBLIC_BACKEND_URL=http://lysnrai-backend:4015
|
- PLATFORM_SERVICE_URL=http://platform-service:4003
|
||||||
- NEXT_PUBLIC_PLATFORM_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:
|
depends_on:
|
||||||
lysnrai-backend:
|
lysnrai-backend:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@ -552,7 +554,7 @@ services:
|
|||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=3030
|
- PORT=3030
|
||||||
- NEXT_PUBLIC_BACKEND_URL=http://chronomind-backend:4011
|
- 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:
|
depends_on:
|
||||||
chronomind-backend:
|
chronomind-backend:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@ -568,8 +570,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=3035
|
- PORT=3035
|
||||||
- NEXT_PUBLIC_BACKEND_URL=http://jarvisjr-backend:4012
|
- NEXT_PUBLIC_PLATFORM_SERVICE_URL=http://platform-service:4003
|
||||||
- NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003
|
|
||||||
depends_on:
|
depends_on:
|
||||||
jarvisjr-backend:
|
jarvisjr-backend:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@ -585,7 +586,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=3040
|
- PORT=3040
|
||||||
- NEXT_PUBLIC_BACKEND_URL=http://flowmonk-backend:4017
|
|
||||||
- NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003
|
- NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003
|
||||||
depends_on:
|
depends_on:
|
||||||
flowmonk-backend:
|
flowmonk-backend:
|
||||||
@ -602,8 +602,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=3045
|
- PORT=3045
|
||||||
- NEXT_PUBLIC_BACKEND_URL=http://notelett-backend:4016
|
- NEXT_PUBLIC_NOTES_API_URL=http://notelett-backend:4016/api
|
||||||
- NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003
|
- NEXT_PUBLIC_PLATFORM_SERVICE_URL=http://platform-service:4003/api
|
||||||
depends_on:
|
depends_on:
|
||||||
notelett-backend:
|
notelett-backend:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@ -619,8 +619,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=3050
|
- PORT=3050
|
||||||
- NEXT_PUBLIC_BACKEND_URL=http://mindlyst-backend:4014
|
- NEXT_PUBLIC_PLATFORM_SERVICE_URL=http://platform-service:4003
|
||||||
- NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003
|
|
||||||
depends_on:
|
depends_on:
|
||||||
mindlyst-backend:
|
mindlyst-backend:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@ -636,8 +635,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=3055
|
- PORT=3055
|
||||||
- NEXT_PUBLIC_BACKEND_URL=http://nomgap-backend:4013
|
- NEXT_PUBLIC_NOMGAP_API_URL=http://nomgap-backend:4013/api
|
||||||
- NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003
|
- NEXT_PUBLIC_PLATFORM_SERVICE_URL=http://platform-service:4003/api
|
||||||
depends_on:
|
depends_on:
|
||||||
nomgap-backend:
|
nomgap-backend:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@ -653,7 +652,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=3060
|
- 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
|
- NEXT_PUBLIC_PLATFORM_URL=http://platform-service:4003
|
||||||
depends_on:
|
depends_on:
|
||||||
actiontrail-backend:
|
actiontrail-backend:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user