Comments (3)
@Doc999tor thanks for the fix provided, i will propose a PR with the fix you have mentioned.
meanwhile it gets accepted and merged, and to give a little context to visitors of this issue, since i'm using esbuild to pack my lambda@edge it can be solved without modifying the code by adding banner.js
containing const __dirname = url.fileURLToPath(import.meta.url)
.
from fast-geoip.
- Yes, you're right. For fixing it, you can use a workaround using
path.dirname(url.fileURLToPath(import.meta.url))
- from here - This repo is not maintained for a long time. If you don't build the MaxMind db in the @edge, you can use the fork, I actively maintain: https://github.com/Doc999tor/fast-geoip
- You can create a PR with
__dirname
fix to my repo, I'd be happy to let this great project evolve
from fast-geoip.
for people following this. for edge functions in aws, you don't need this package anymore since geoheaders come for free in cloudfront.
from fast-geoip.
Related Issues (11)
- Support for data updates in production environment HOT 2
- Wrong data for IP HOT 4
- Wrong Data HOT 1
- How to update fast-geoip database? Is there some scripts or cliοΌ HOT 4
- IPv6 support HOT 8
- Incorrect location information for localhost: 127.0.0.1 HOT 2
- Consistent high CPU usage.
- Lookups not working correctly HOT 3
- Support for NextJS middleware? HOT 1
- Maybe offer asynchronous version ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast-geoip.