Henrique Doro
Sanity user & community member turned employee π (Applications Engineer)
Allows uploading, referencing and deleting video and audio files to S3 directly from your Sanity studio.
Allows uploading, referencing and deleting video and audio files to S3 directly from your Sanity studio. Is a flavor of sanity-plugin-external-dam.
Start by installing the plugin:
sanity install s3-dam
The rest of the work must be done inside AWS' console:
With these in hand, fill-in the plugin's configuration form where you'll fill in the bucket key (ex: my-sanity-bucket
), the bucket region (ex: ap-south-1
), the URL for both Lambda functions and an optional secret for validating input in functions.
I plan on recording a video tutorial going through the process in detail. Until then, reach out if you have questions π
Use the s3-dam.media
type in your fields. Examples:
{ name: "video", title: "Video (S3)", type: "s3-dam.media", options: { accept: "video/*", storeOriginalFilename: true, }, }, { name: "anyFile", title: "File (S3)", type: "s3-dam.media", options: { // Accept ANY file accept: "*", storeOriginalFilename: true, }, },
Refer to sanity-plugin-external-dam for those :)
sanity install s3-dam
Sanity user & community member turned employee π (Applications Engineer)
Render Portable Text block content with Svelte components.
Go to PortableText to SvelteEditor friendly slug fields for your Sanity.io studio
Go to Better slug inputShow your editors how their page will look on Google and major social platforms in your documents' view.
Go to Sanity social and SEO document previewAllow editors to generate images on the fly inside of Sanity π₯
Go to OG Image generator asset source