Fix vercel (#241)

* use static imports for prebuilt cards

* fixed s3 env variables
This commit is contained in:
arkml 2025-09-11 21:39:47 +05:30 committed by GitHub
parent 5efdee18eb
commit ad7a0d313b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 47 additions and 53 deletions

View file

@ -645,9 +645,9 @@ export function createGenerateImageTool(
{ modelName }
);
// If S3 bucket configured, store in S3 under generated_images/<c>/<d>/<filename>
const s3Bucket = process.env.UPLOADS_S3_BUCKET || '';
const s3Bucket = process.env.RAG_UPLOADS_S3_BUCKET || '';
if (s3Bucket) {
const s3Region = process.env.UPLOADS_AWS_REGION || 'us-east-1';
const s3Region = process.env.RAG_UPLOADS_S3_REGION || 'us-east-1';
const s3 = new S3Client({
region: s3Region,
credentials: process.env.AWS_ACCESS_KEY_ID && process.env.AWS_SECRET_ACCESS_KEY ? {