Skip to content

Conversation

@mdlavin
Copy link

@mdlavin mdlavin commented May 18, 2023

I've been using ngrok inside a Lambda function and in that environment, writing to the node_modules directory is not allowed. Instead, I've been using this patch so that I can store download cache and binaries in the temp directory of the OS.

Rather than making the temp directory use explicit, I thought making it configurable would be better

cdnUrl: string;
cdnPath: string;
ignoreCache: boolean;
cafilePath?: string;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only new addition are the last two lines. The other lines are made optional to reflect reality.

interface CapturedRequestOptions {
limit: number;
tunnel_name: string;
tunnel_name?: string;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed during development, the tunnnel_name isn't really required

@mdlavin
Copy link
Author

mdlavin commented May 18, 2023

P.S. Thank you for working on this project. We've been using it for a while and it works great!

@mdlavin
Copy link
Author

mdlavin commented Nov 9, 2023

@philnash would you mind considering this PR?

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

Successfully merging this pull request may close these issues.

1 participant