feat: add endpoint and bucket name from env

This commit is contained in:
Yehoshua Sandler 2025-05-07 11:27:51 -05:00
parent 0bf375efd9
commit 436a076657
2 changed files with 4 additions and 2 deletions

View File

@ -3,3 +3,5 @@ PAYLOAD_SECRET=YOUR_SECRET_HERE
PORT=3000
ACCESS_KEY_ID=
SECRET_ACCESS_KEY=
BUCKET_NAME=
S3_ENDPOINT=

View File

@ -42,14 +42,14 @@ export default buildConfig({
collections: {
media: true,
},
bucket: 'ysandler-work',
bucket: process.env.BUCKET_NAME || '',
config: {
credentials: {
accessKeyId: process.env.ACCESS_KEY_ID || '',
secretAccessKey: process.env.SECRET_ACCESS_KEY || '',
},
region: 'us-east-1',
endpoint: 'http://192.168.1.131:9000',
endpoint: process.env.S3_ENDPOINT,
forcePathStyle: true,
}
})