alexbosworth / lightning

Lightning client methods
MIT License
126 stars 32 forks source link

Dynamic path for proto files #174

Closed niteshbalusu11 closed 2 months ago

niteshbalusu11 commented 2 months ago

Allow setting of an env variable to specify the path to protos. This could be useful if you want to let's say use some other version of protos like what is on the current master branch or some full stack frameworks like nextjs wont package the proto files automatically into the build folder unless they are in a specific directory so it'll be helpful in such scenarios as well.

https://github.com/alexbosworth/lightning/blob/master/lnd_grpc%2Fauthenticated_lnd_grpc.js#L18

niteshbalusu11 commented 2 months ago

Fixed in #175