mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat: wip upload documents
This commit is contained in:
10
packages/server/src/lib/S3/S3.ts
Normal file
10
packages/server/src/lib/S3/S3.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { S3Client } from '@aws-sdk/client-s3';
|
||||
|
||||
export const s3 = new S3Client({
|
||||
region: process.env.AWS_REGION,
|
||||
credentials: {
|
||||
accessKeyId: process.env.AWS_ACCESS_KEY_ID as string,
|
||||
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY as string,
|
||||
},
|
||||
endpoint: process.env.AWS_ENDPOINT,
|
||||
});
|
||||
Reference in New Issue
Block a user