diff --git a/docker-compose.yml b/docker-compose.yml index 0316920c..24a1e9b3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: '3.8' +version: "3.8" services: backend: @@ -27,7 +27,8 @@ services: ports: - "3000:3000" environment: - - NEXT_PUBLIC_API_URL=http://backend:8000 + - NEXT_PUBLIC_API_URL= + - BACKEND_URL=http://backend:8000 depends_on: - backend networks: diff --git a/frontend/next.config.ts b/frontend/next.config.ts index 0069935d..b8918212 100644 --- a/frontend/next.config.ts +++ b/frontend/next.config.ts @@ -8,7 +8,7 @@ const nextConfig: NextConfig = { // In production (Railway): use BACKEND_URL env var or fallback to Railway URL const isDev = process.env.NODE_ENV === 'development'; const backendUrl = process.env.BACKEND_URL || - (isDev ? "http://localhost:8000" : "https://tradinaagents-backend.up.railway.app"); + (isDev ? "http://localhost:8000" : "https://tradingagents-backend.up.railway.app"); return [ {