Setup
- Set up the
HALL_API_KEY
environment variable with your Hall API key. - Create a
middleware.ts
file in your Next.js project root to implement the analytics middleware.
Example
The example below demonstrates how to forward data from Next.js headers function.middleware.ts