feat: add S3 configuration and update project structure

This commit is contained in:
yuanhau 2025-05-06 09:43:26 +08:00
parent 330c92a432
commit 8955fce368
14 changed files with 70 additions and 1 deletions

11
server/components/s3.ts Normal file
View file

@ -0,0 +1,11 @@
import { S3Client } from "bun";
const s3config = new S3Client({
accessKeyId: process.env.S3_ACCESS_KEY,
secretAccessKey: process.env.S3_SECRET_KEY,
bucket: process.env.S3_BUCKETNAME,
acl: "public-read",
endpoint: process.env.S3_ENDPOINT,
});
export default s3config;