From 96846f0249b2f013166cd81068c5b4580c9d0a61 Mon Sep 17 00:00:00 2001 From: alma Date: Sat, 24 May 2025 18:40:59 +0200 Subject: [PATCH] W n8n attention vm --- app/api/missions/image/[...path]/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/missions/image/[...path]/route.ts b/app/api/missions/image/[...path]/route.ts index a3c796ac..ccd482d2 100644 --- a/app/api/missions/image/[...path]/route.ts +++ b/app/api/missions/image/[...path]/route.ts @@ -34,8 +34,8 @@ export async function GET( segments: pathSegments }); - // Remove the missions/ prefix from the URL path since it's already in the Minio path - const minioPath = filePath.startsWith('missions/') ? filePath : `missions/${filePath}`; + // Remove the missions/ prefix from the URL path since the file is already in the missions bucket + const minioPath = filePath.replace(/^missions\//, ''); console.log('Full Minio path:', { minioPath, bucket: 'missions',