Install Semanto on Netlify
An edge function answers agents with your signed copy and hands every other request to your site.
Steps
- Download the package below and unzip it.
- Copy netlify/edge-functions/semanto.ts into your site's netlify/edge-functions folder and the shared folder to the root of your repository.
- Add the edge_functions block from netlify.toml to your own netlify.toml.
- Set TROOTH_ID to your Trooth ID in your site's environment variables, then deploy.
- Press Check my site in the dashboard.
Download
Download the Netlify package (zip, 19 KB). It holds the files the steps name.
Check it works
From any terminal. The answer should be markdown with Signature and Trooth-Semanto-Version headers.
curl -s -H "Accept: text/markdown" https://example.com/ | headIf Trooth is slow or down, your site keeps answering: what the adapter does.