From 2c92e07d391d284b4e1dd0af033e6703578c2b3a Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Sun, 12 Apr 2026 09:29:15 +0200 Subject: [PATCH] fix: Update backend URL in QuickImportProxy to use the correct API endpoint --- compose.yml | 2 ++ frontend/app/api/quick-import-proxy/route.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/compose.yml b/compose.yml index b737413a..41c41cfe 100644 --- a/compose.yml +++ b/compose.yml @@ -5,6 +5,8 @@ services: dockerfile: Dockerfile container_name: recipe-frontend restart: unless-stopped + environment: + NEXT_PUBLIC_API_URL: "http://recipe-api:8080" # env_file: # - .env networks: diff --git a/frontend/app/api/quick-import-proxy/route.ts b/frontend/app/api/quick-import-proxy/route.ts index b38f0fc1..c5789e26 100644 --- a/frontend/app/api/quick-import-proxy/route.ts +++ b/frontend/app/api/quick-import-proxy/route.ts @@ -15,7 +15,7 @@ export async function POST(request: NextRequest) { } // Anropa backend - const backendUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080'; + const backendUrl = process.env.NEXT_PUBLIC_API_URL || 'http://recipe-api:8080'; console.log('[QuickImportProxy] Anropar backend på:', backendUrl + '/api/quick-import'); const response = await fetch(`${backendUrl}/api/quick-import`, {