fix: Update backend URL in QuickImportProxy to use the correct API endpoint
This commit is contained in:
@@ -5,6 +5,8 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: recipe-frontend
|
container_name: recipe-frontend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
NEXT_PUBLIC_API_URL: "http://recipe-api:8080"
|
||||||
# env_file:
|
# env_file:
|
||||||
# - .env
|
# - .env
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export async function POST(request: NextRequest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Anropa backend
|
// 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');
|
console.log('[QuickImportProxy] Anropar backend på:', backendUrl + '/api/quick-import');
|
||||||
|
|
||||||
const response = await fetch(`${backendUrl}/api/quick-import`, {
|
const response = await fetch(`${backendUrl}/api/quick-import`, {
|
||||||
|
|||||||
Reference in New Issue
Block a user