fix: Update backend URL in QuickImportProxy to use the correct API endpoint
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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`, {
|
||||
|
||||
Reference in New Issue
Block a user