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
- Create an API token on the Account page and copy it.
- In your Vercel project, add
INTERCRAWL_TOKENunder Project settings, Environment variables. - Add the helper package the file uses:
npm install @vercel/functions
- Save the install file at the root of your project, next to
package.json:
Save asmiddleware.tsintercrawl.com/install/v1/vercel.ts
- 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;
Not answered here? Write to hello@intercrawl.com.Next: Install on Netlify