-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use geoip-lite in next js application #266
Comments
Please describe the problem in more detail.
|
@bluesmoon check description |
It doesn't sound like this is a problem with node-geoip as we do not have routes. node-geoip will only lookup an IP, returning an address. Make sure it has access to the data files. Managing your file system/containerization/etc. is outside the scope of node-geoip. How are you installing node-geoip? Is it directly on the system or in a container? How are you upgrading the data files? Where are they stored? |
I found that you need to include the lib in nextjs via: in next.config.js
|
whenever i use geoip-lite in next js server routes that route is failing and whenever I hitted that route it will redirected me to notfound route .
The issue might be with the fs module as far i researched .
The text was updated successfully, but these errors were encountered: