Skip to main content
On this page

Install Semanto on Vercel

View as Markdown

Next.js middleware and one route handler answer agents with your signed copy. Your pages keep running as they do.

Steps

  1. Download the package below and unzip it.
  2. 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.
  3. Add the environment variable TROOTH_ID with your Trooth ID, then deploy.
  4. 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.
  5. 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/ | head

If Trooth is slow or down, your site keeps answering: what the adapter does.

All install guides

Was this page helpful?

View as agent