feat: support private mirrors (#1240)

* feat: support private mirrors

* chore: change fallback message with mirrors
This commit is contained in:
Marco Ippolito 2025-04-02 17:49:47 +02:00 committed by GitHub
parent 40337cb8f7
commit e3ce749e20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 322 additions and 44 deletions

View file

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