mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 02:51:46 +00:00
- Adicionado .gitattributes com eol=lf para scripts shell e Dockerfile - Dockerfile: sed -i 's/\r$//' no entrypoint para eliminar CRLF em ambientes Windows/WSL2 - s3-client.ts: substituído ?? por || para tratar string vazia em S3_REGION e demais vars - CHANGELOG, package.json e lockfile atualizados para v2.3.7 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
388 B
TypeScript
14 lines
388 B
TypeScript
import { S3Client } from "@aws-sdk/client-s3";
|
|
|
|
export const s3 = new S3Client({
|
|
endpoint: process.env.S3_ENDPOINT || "",
|
|
region: process.env.S3_REGION || "auto",
|
|
credentials: {
|
|
accessKeyId: process.env.S3_ACCESS_KEY_ID || "",
|
|
secretAccessKey: process.env.S3_SECRET_ACCESS_KEY || "",
|
|
},
|
|
forcePathStyle: true,
|
|
});
|
|
|
|
export const S3_BUCKET = process.env.S3_BUCKET || "attachments";
|