Install Semanto on Vercel
Next.js middleware and one route handler answer agents with your signed copy. Your pages keep running as they do.
Steps
- Download the package below and unzip it.
- Copy middleware.ts, lib-semanto.ts, the app/semanto folder, the scripts folder and the shared folder into the root of your project, and merge vercel.json with yours. On Next.js 16, name middleware.ts proxy.ts.
- Add the environment variable TROOTH_ID with your Trooth ID, then deploy.
- In the Trooth dashboard under Delivery, paste a Vercel Deploy Hook URL so your two well-known files are rebuilt when you sign a new version.
- Press Check my site in the dashboard.
Download
Download the Vercel package (zip, 23 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.