UNPKG

lingapp-file

Version:

Mongoose model for managing files in the LingApp system with S3 support

13 lines (12 loc) 405 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.s3 = void 0; const client_s3_1 = require("@aws-sdk/client-s3"); require("dotenv/config"); exports.s3 = new client_s3_1.S3Client({ region: process.env.AWS_REGION, credentials: { accessKeyId: process.env.AWS_ACCESS_KEY_ID || "", secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY || "", }, });