S3 Storage
Using S3 storage
Uploading and reading files from S3 compatible storage.
Storage plans are S3 compatible, so they work with standard S3 clients including the AWS SDK. You get an access key and a secret key from the panel.
import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3";
const s3 = new S3Client({
endpoint: process.env.S3_ENDPOINT,
region: "auto",
credentials: {
accessKeyId: process.env.S3_ACCESS_KEY,
secretAccessKey: process.env.S3_SECRET_KEY,
},
forcePathStyle: true,
});Leave forcePathStyle set to true. Otherwise the client tries the subdomain style and the connection fails.
Egress
Every plan includes free monthly egress: 30 GB on Storage 10, 150 GB on Storage 50 and 300 GB on Storage 100. If you go over, we will contact you.

