mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-16 18:25:17 +02:00
Fix vercel (#241)
* use static imports for prebuilt cards * fixed s3 env variables
This commit is contained in:
parent
5efdee18eb
commit
ad7a0d313b
5 changed files with 47 additions and 53 deletions
|
|
@ -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 ? {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue