From 6020021370a829fb9c732790b5069268c1a9c481 Mon Sep 17 00:00:00 2001 From: Schalli Date: Mon, 29 Jun 2026 15:42:44 +0200 Subject: [PATCH] fix(web): use http://api:3001 as default rewrite destination MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit next.config rewrites() runs at build time — API_INTERNAL_URL is not set in CI, so the previous localhost:3001 fallback was baked into the bundle. Default to http://api:3001 which is always correct in Docker network. Co-Authored-By: Claude Sonnet 4.6 --- apps/web/next.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts index 069d6c0..29c8546 100644 --- a/apps/web/next.config.ts +++ b/apps/web/next.config.ts @@ -6,7 +6,7 @@ const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts'); const nextConfig: NextConfig = { output: 'standalone' as const, async rewrites() { - const apiUrl = process.env.API_INTERNAL_URL || 'http://localhost:3001'; + const apiUrl = process.env.API_INTERNAL_URL || 'http://api:3001'; return [ { source: '/api-proxy/:path*',