Netlify Blobs storage for Easy CMS uploads, for sites on Netlify (whose disk doesn't keep files). Part of Easy CMS, the embedded, code-first headless CMS for Nuxt and Next.js.
Install
npm install @easy-cms/storage-netlify-blobs
Or pnpm add, yarn add or bun add.
Usage
On Netlify, Blobs need no setup: the store is created on first use.
import { netlifyBlobsStorage } from '@easy-cms/storage-netlify-blobs'
export default defineConfig({
// …
upload: { storage: netlifyBlobsStorage() }, // files are served through /api/cms/media/file/…
})
Outside Netlify's runtime (a script, another host), pass siteID and a personal access token.