@lucidcms/plugin-local-storage
v1.1.0
Published
The official Local Storage plugin for Lucid
Downloads
75
Maintainers
Readme
Lucid - Local Storage Plugin
The official Local Storage plugin for Lucid
This plugin registers the required media strategy functions to stream, upload, update and delete media from the specified local directory.
Installation
npm install @lucidcms/plugin-local-storage
lucid.config.ts/js
import LucidLocalStorage from "@lucidcms/plugin-local-storage";
export default lucid.config({
// ...other config
plugins: [
LucidLocalStorage({
uploadDir: "./uploads",
secretKey: 'MY_SECRET_KEY',
supportedMimeTypes: ['image/jpeg', 'image/png'], // optional, default array supports a wide range of common mime types.
}),
],
});