Netlify Blobs storage that works with webmention-handler.
This project was built alongside webmention-receiver so that you can host your own webmentions on Netlify. You can see a fully working sample at the serverless-webmentions repo.
npm install webmention-handler-netlify-blobs --save
import BlobStorage from 'webmention-handler-netlify-blobs'
const storage = new BlobStorage({
siteID: 'netlify-site-id', // optional
token: 'netlify-personal-access-token' // optional
})
By default, siteID
and token
are not required as it will use your current site for your blobs. You can optionally
add those values if you have a specific siteID
you would like to use or while developing locally. For the token
value, you need to create a Netlify personal access token.
import { WebmentionHandler } from 'webmention-handler'
const wmHandler = new WebmentionHandler({
storage
})