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

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