S3 Plugin
This plugin registers the required media strategy functions to stream, upload, update and delete media from any S3 compatible storage solution.
Installation
To install the S3 plugin, run the following command in your terminal:
Configuration
To use the S3 plugin, you need to add it to your lucid.config.ts
or lucid.config.js
file. You will need to provide it connection details to your bucket.
Bucket Configuration
As Lucid uses presigned URLs to upload media from the client, you will need to configure your S3 bucket’s CORS policy. This will need to allow PUT
requests, along with the Content-Type
and Origin
headers.