diff --git a/.gitignore b/.gitignore index fe36055..871d5ec 100644 --- a/.gitignore +++ b/.gitignore @@ -66,6 +66,7 @@ next-env.d.ts .cursor/ *.swp *.swo +emberly.site.conf # Database prisma/*.db diff --git a/packages/lib/storage/index.ts b/packages/lib/storage/index.ts index 529b301..a62a245 100644 --- a/packages/lib/storage/index.ts +++ b/packages/lib/storage/index.ts @@ -199,6 +199,16 @@ export async function getProviderForStoredFile( const bucket = await prisma.storageBucket.findUnique({ where: { id: storageBucketId }, + select: { + id: true, + provider: true, + s3Bucket: true, + s3Region: true, + s3AccessKeyId: true, + s3SecretKey: true, + s3Endpoint: true, + s3ForcePathStyle: true, + }, }) if (!bucket) {