Installation and Configuration
The Netacea Vercel integration detects bot activity and performs mitigating actions in line with the client blocking strategy.
Last updated
The Netacea Vercel integration detects bot activity and performs mitigating actions in line with the client blocking strategy.
Last updated
To successfully integrate using Netacea, please ensure you have:
Installed , (version 16.13.0 or higher) and on you machine.
An active Vercel account with access to the edge middleware functionality.
A “Paid” Vercel subscription, in order to avoid any issues with request-limits etc.
An existing Vercel Project.
Details of the relevant API and Secret keys, and a Kinesis endpoint - provided by Netacea.
Within your Vercel project, run:
npm i @netacea/vercel
.
This will install Netacea package to your project.
Within the project, create NetaceaConfig.json
in the same directory as your middleware(described in the "Middleware Setup" section). Then update its contents to match the below:
Replace the values with the details that Netacea has provided you and save the file.
cookieEncryptionKey, netaceaCookieName and netaceaCaptchaCookieName variables are used to increase security by concealing Netacea's default cookie names and values from public view.
A middleware.ts
should be created in root directory of your project, if not present already. The following code should be placed in the middleware.ts
file:
To successfully deploy the project to Vercel, the following steps must be followed:
Commit NetaceaConfig.json
to your source control
Add NetaceaConfig.json
to your .gitignore
The project should then be pushed to your Git repository.
Vercel will automatically detect the push to Github and initiate the deployment process.