@lucidcms/plugin-s3
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Lucid - S3 Plugin

The official S3 plugin for Lucid

This plugin registers the required media strategy functions to stream, upload, update and delete media from any S3 compatible storage solution.

Installation

npm install @lucidcms/plugin-s3

lucid.config.ts/js

import LucidS3 from "@lucidcms/plugin-s3";

export default lucidConfig({
  // ...other config
  plugins: [
    LucidS3({
      clientConfig: {
        endpoint: `https://${process.env.HEADLESS_CLOUDFLARE_ACCOUNT_ID}.r2.cloudflarestorage.com`,
        region: "auto",
        credentials: {
          accessKeyId: process.env.HEADLESS_S3_ACCESS_KEY as string,
          secretAccessKey: process.env.HEADLESS_S3_SECRET_KEY as string,
        },
      },
      bucket: "headless-cms",
    }),
  ],
});

Package Sidebar

Install

npm i @lucidcms/plugin-s3

Weekly Downloads

64

Version

1.0.2

License

MIT

Unpacked Size

25.7 kB

Total Files

7

Last publish

Collaborators

  • williamyallop