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.
npm install @lucidcms/plugin-local-storage
import LucidLocalStorage from "@lucidcms/plugin-local-storage";
export default lucid.config({
// ...other config
plugins: [
LucidLocalStorage({
uploadDir: "./uploads",
}),
],
});