Skip to content
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

Open
Karthik73965 opened this issue Jun 21, 2024 · 3 comments
Open

Cannot use geoip-lite in next js application #266

Karthik73965 opened this issue Jun 21, 2024 · 3 comments

Comments

@Karthik73965
Copy link

Karthik73965 commented Jun 21, 2024

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 .

@bluesmoon
Copy link
Collaborator

bluesmoon commented Jun 21, 2024 via email

@Karthik73965 Karthik73965 changed the title Canmot use geip-lite in next js Cannot use geoip-lite in next js application Jun 23, 2024
@Karthik73965
Copy link
Author

@bluesmoon check description

@bluesmoon
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants