mirror of
https://gitlab.com/SukkaW/ruleset.skk.moe.git
synced 2026-04-20 02:44:25 +00:00
deploy: 1586fe73c1f6ae8ef683d772580403d5066aee6e
This commit is contained in:
@@ -3,6 +3,8 @@ const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
(async () => {
|
||||
console.time('Total Time - build-cdn-conf');
|
||||
|
||||
const domains = (await (await fetchWithRetry('https://publicsuffix.org/list/public_suffix_list.dat')).text()).split('\n');
|
||||
|
||||
const S3OSSDomains = domains.filter(line => {
|
||||
@@ -29,4 +31,6 @@ const path = require('path');
|
||||
);
|
||||
|
||||
await fs.promises.writeFile(filePath, content, 'utf-8');
|
||||
|
||||
console.timeEnd('Total Time - build-cdn-conf');
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user