fix(web): use http://api:3001 as default rewrite destination
Tessera CI/CD / Lint & Type Check (push) Successful in 43s
Tessera CI/CD / Tests (push) Successful in 37s
Tessera CI/CD / Build & Publish Images (push) Successful in 1m24s

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 <noreply@anthropic.com>
This commit is contained in:
2026-06-29 15:42:44 +02:00
parent c42ab5dc6f
commit 6020021370
+1 -1
View File
@@ -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*',