Install guides

Install on Vercel (other frameworks)

One middleware file for a site on Vercel built with anything but Next.js.

For a Next.js app, use the Next.js install. For any site on Vercel without code changes, Add to Vercel is shorter.

Steps

  1. Create an API token on the Account page and copy it.
  2. In your Vercel project, add INTERCRAWL_TOKEN under Project settings, Environment variables.
  3. Add the helper package the file uses:
npm install @vercel/functions
  1. Save the install file at the root of your project, next to package.json:
  1. Deploy, then press Check install on the Sites page.

If your project already has a middleware.ts, save the install file elsewhere (for example lib/intercrawl.ts) and add at the top of your function:

const page = await intercrawl(request);
if (page) return page;