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',