Skip to content

Commit

Permalink
download: include more external resource hosts
Browse files Browse the repository at this point in the history
Close #929
Part of #930
  • Loading branch information
myfreeer committed Oct 3, 2023
1 parent f216d24 commit a03982d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/mdn/process-url/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ export const downloadableHosts = arrayToMap([
// https://github.com/website-local/mdn-local/issues/890
'bcd.developer.mozilla.org',
'bcd.developer.allizom.org',
// https://github.com/website-local/mdn-local/issues/929
// 20231003
'upload.wikimedia.org',
'cdn.aframe.io',
'raw.githubusercontent.com',
// https://github.com/website-local/mdn-local/issues/930
// 20231003
'archive.org',
'peach.blender.org',
]);

export interface ExternalHost {
Expand All @@ -93,6 +102,15 @@ export const externalHosts = [
['/cdnjs-cloudflare-com/', 'cdnjs.cloudflare.com'],
// https://github.com/website-local/mdn-local/issues/448
['/cdn-jsdelivr-net/', 'cdn.jsdelivr.net'],
// https://github.com/website-local/mdn-local/issues/929
// 20231003
['/upload.wikimedia.org/', 'upload.wikimedia.org'],
['/cdn.aframe.io/', 'cdn.aframe.io'],
['/raw.githubusercontent.com/', 'raw.githubusercontent.com'],
// https://github.com/website-local/mdn-local/issues/930
// 20231003
['/archive.org/', 'archive.org'],
['/peach.blender.org/', 'peach.blender.org'],
].map(([prefix, host]) => ({
host,
prefix,
Expand Down

0 comments on commit a03982d

Please sign in to comment.