From 86b824bdd5d84c1cbfef71f893744d67554f3cd7 Mon Sep 17 00:00:00 2001 From: alma Date: Sat, 24 May 2025 18:38:29 +0200 Subject: [PATCH] W n8n attention vm --- app/api/missions/image/[...path]/route.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/api/missions/image/[...path]/route.ts b/app/api/missions/image/[...path]/route.ts index 80589010..b8aae2eb 100644 --- a/app/api/missions/image/[...path]/route.ts +++ b/app/api/missions/image/[...path]/route.ts @@ -6,11 +6,11 @@ import { NoSuchKey } from '@aws-sdk/client-s3'; // Initialize S3 client const s3Client = new S3Client({ - region: process.env.MINIO_AWS_REGION, - endpoint: process.env.MINIO_S3_UPLOAD_BUCKET_URL, + region: 'us-east-1', + endpoint: 'https://dome-api.slm-lab.net', credentials: { - accessKeyId: process.env.MINIO_ACCESS_KEY || '', - secretAccessKey: process.env.MINIO_SECRET_KEY || '' + accessKeyId: '4aBT4CMb7JIMMyUtp4Pl', + secretAccessKey: 'HGn39XhCIlqOjmDVzRK9MED2Fci2rYvDDgbLFElg' }, forcePathStyle: true // Required for MinIO }); @@ -39,7 +39,7 @@ export async function GET( console.log('Full Minio path:', { minioPath, bucket: 'missions', - endpoint: process.env.MINIO_S3_UPLOAD_BUCKET_URL + endpoint: 'https://dome-api.slm-lab.net' }); const command = new GetObjectCommand({ @@ -72,7 +72,7 @@ export async function GET( path: filePath, minioPath, bucket: 'missions', - endpoint: process.env.MINIO_S3_UPLOAD_BUCKET_URL, + endpoint: 'https://dome-api.slm-lab.net', errorType: error instanceof NoSuchKey ? 'NoSuchKey' : 'Unknown' }); if (error instanceof NoSuchKey) {