From 4a30f6c1a945dfcd277535c13943c0064655a04d Mon Sep 17 00:00:00 2001 From: Apple Date: Sat, 29 Nov 2025 17:12:03 -0800 Subject: [PATCH] fix(web): use Docker service name as default for API proxy --- apps/web/next.config.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts index afc2b722..59739b55 100644 --- a/apps/web/next.config.ts +++ b/apps/web/next.config.ts @@ -4,9 +4,12 @@ const nextConfig: NextConfig = { output: 'standalone', async rewrites() { - // INTERNAL_API_URL is the backend service URL (city-service) - // Used for proxying API requests from the frontend to the backend - const internalApiUrl = process.env.INTERNAL_API_URL || 'http://localhost:7001' + // For Docker network: use service name + // INTERNAL_API_URL should be set to http://daarion-city-service:7001 in docker + // Fallback to localhost for local development + const internalApiUrl = process.env.INTERNAL_API_URL || 'http://daarion-city-service:7001' + + console.log('[next.config] INTERNAL_API_URL:', internalApiUrl) return [ {