From 75f247e036761f7415c382a69cfd7ca25306a2fc Mon Sep 17 00:00:00 2001 From: bigtux Date: Sat, 7 Feb 2026 11:30:16 -0300 Subject: [PATCH] fix: dashboard API proxy - use server-side rewrite instead of client-side URL --- dashboard/next.config.js | 2 +- docker-compose.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dashboard/next.config.js b/dashboard/next.config.js index 5c9c125..6b5fecf 100644 --- a/dashboard/next.config.js +++ b/dashboard/next.config.js @@ -6,7 +6,7 @@ const nextConfig = { return [ { source: '/api/:path*', - destination: `${process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080'}/api/:path*`, + destination: `${process.env.API_URL || 'http://server:8080'}/api/:path*`, }, ]; }, diff --git a/docker-compose.yml b/docker-compose.yml index d1195d1..df0ff12 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -65,7 +65,8 @@ services: ports: - "3000:3000" environment: - - NEXT_PUBLIC_API_URL=http://localhost:8080 + - NEXT_PUBLIC_API_URL= + - API_URL=http://server:8080 - NODE_ENV=production depends_on: - server