@easy-cms/storage-s3
v0.37.2
Published
S3-compatible upload storage for Easy CMS: AWS S3, Cloudflare R2, MinIO
Readme
@easy-cms/storage-s3
Upload storage for Easy CMS on AWS S3, Cloudflare R2, MinIO or any S3-compatible service, for hosts without a persistent disk (Vercel, Netlify, containers). Part of Easy CMS, the embedded, code-first headless CMS for Nuxt and Next.js.
Install
npm install @easy-cms/storage-s3Or pnpm add, yarn add or bun add.
Usage
import { s3Storage } from '@easy-cms/storage-s3'
export default defineConfig({
// …
upload: { storage: s3Storage({ bucket: 'my-site-media', region: 'eu-central-1' }) },
})Credentials default to AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY. Files are served through the
CMS API (private bucket) unless you set publicUrl.
Links
Uploads & media · Documentation (ภาษาไทย) · GitHub
MIT License
