Giter VIP home page Giter VIP logo

Comments (3)

y-nk avatar y-nk commented on June 16, 2024 1

@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.

Doc999tor avatar Doc999tor commented on June 16, 2024
  1. Yes, you're right. For fixing it, you can use a workaround using path.dirname(url.fileURLToPath(import.meta.url)) - from here
  2. 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
  3. You can create a PR with __dirname fix to my repo, I'd be happy to let this great project evolve

from fast-geoip.

y-nk avatar y-nk commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.