I'm using the library to enable IP whitelisting for a Next.js app hosted on Vercel. This causes a build error:
Failed to compile.
../../node_modules/is_js/is.js
Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Middleware middleware
Import trace for requested module:
../../node_modules/request-ip/dist/index.js
./middleware.ts
This is this module's only dependency, can this import be dropped in favour of lightweight equivalents?
I'm using the library to enable IP whitelisting for a Next.js app hosted on Vercel. This causes a build error:
This is this module's only dependency, can this import be dropped in favour of lightweight equivalents?