chore: use jsdelivr cdn link to avoid github 429 when build docs
This commit is contained in:
parent
330499134f
commit
81ee26fff2
|
|
@ -1,14 +0,0 @@
|
|||
const refererMap = new Map([
|
||||
['fbcdn.net', 'https://www.facebook.com/'],
|
||||
['cdninstagram.com', 'https://www.instagram.com/'],
|
||||
['moyu.im', 'https://jandan.net/'],
|
||||
['lightnovel.us', 'https://www.lightnovel.us/'],
|
||||
['indienova.com', 'https://indienova.com/'],
|
||||
['pximg.net', 'https://www.pixiv.net/'],
|
||||
['me8gs.app', 'https://www.sehuatang.net/'],
|
||||
['rxn30.app', 'https://www.sehuatang.net/'],
|
||||
['sex.com', 'https://www.sex.com/'],
|
||||
['sinaimg.cn', 'https://weibo.com/'],
|
||||
]);
|
||||
|
||||
export { refererMap };
|
||||
|
|
@ -4,7 +4,7 @@ import path from 'node:path';
|
|||
import { categories } from './data';
|
||||
import { getCurrentPath } from '../../lib/utils/helpers';
|
||||
|
||||
const fullTests = await (await fetch('https://raw.githubusercontent.com/DIYgod/RSSHub/gh-pages/build/test-full-routes.json')).json();
|
||||
const fullTests = await (await fetch('https://cdn.jsdelivr.net/gh/DIYgod/RSSHub@gh-pages/build/test-full-routes.json')).json();
|
||||
const testResult = fullTests.testResults[0].assertionResults;
|
||||
|
||||
const __dirname = getCurrentPath(import.meta.url);
|
||||
|
|
|
|||
Loading…
Reference in New Issue