feat: support private mirrors

This commit is contained in:
Marco Ippolito
2025-03-06 10:52:23 +01:00
parent 40337cb8f7
commit 8f2ef77ada
14 changed files with 281 additions and 42 deletions

View File

@@ -6,7 +6,8 @@ export default class RcBuild extends BaseDistribution {
super(nodeInfo);
}
getDistributionUrl(): string {
return 'https://nodejs.org/download/rc';
getDistributionUrl(mirror: string): string {
const url = mirror || 'https://nodejs.org';
return `${url}/download/rc`;
}
}