Download lib/s3.ts from mrlectus/visio: direct link, hf CLI and curl.
- Browser
- Download file 254 Bytes
-
https://huggingface.co/spaces/mrlectus/visio/resolve/main/lib/s3.ts
- Command line
-
hf download hf://spaces/mrlectus/visio/lib/s3.ts
-
curl -L -o s3.ts https://huggingface.co/spaces/mrlectus/visio/resolve/main/lib/s3.ts
254 Bytes
| import { S3Client } from "@aws-sdk/client-s3"; | |
| export const s3 = new S3Client({ | |
| region: "us-east-1", | |
| credentials: { | |
| accessKeyId: process.env.AWS_ACCESS_KEY_ID as string, | |
| secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY as string, | |
| }, | |
| }); | |