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

Add ZEIT_FUN_NODE_MIRROR ENV for node.js tarball mirror support #31

Closed
wants to merge 2 commits into from

Conversation

luoyjx
Copy link

@luoyjx luoyjx commented Aug 22, 2019

This feature will be good for me :)

@@ -25,7 +25,14 @@ export function generateNodeTarballUrl(
} else {
ext = 'tar.gz';
}
return `https://nodejs.org/dist/${version}/node-${version}-${plat}-${arch}.${ext}`;

let mirror = process.env.ZEIT_FUN_MIRRORS_NODE;
Copy link
Member

Choose a reason for hiding this comment

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

I would prefer the name to be:

Suggested change
let mirror = process.env.ZEIT_FUN_MIRRORS_NODE;
let mirror = process.env.ZEIT_FUN_NODE_MIRROR;

@TooTallNate
Copy link
Member

I am potentially ok with this change, however it needs a test case.

@luoyjx luoyjx changed the title feat: support ZEIT_FUN_MIRRORS_NODE env for node.js tarball feat: support ZEIT_FUN_NODE_MIRROR env for node.js tarball Sep 19, 2019
@luoyjx
Copy link
Author

luoyjx commented Sep 19, 2019

@TooTallNate Thanks for replying! I rename the ENV from 'ZEIT_FUN_MIRRORS_NODE' to 'ZEIT_FUN_NODE_MIRROR' and add test for this feature.

@luoyjx luoyjx changed the title feat: support ZEIT_FUN_NODE_MIRROR env for node.js tarball Add ZEIT_FUN_NODE_MIRROR ENV for node.js tarball mirror support Sep 19, 2019
@luoyjx luoyjx closed this Nov 30, 2019
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.

2 participants