Refactor: migrate to undici fetch

This commit is contained in:
SukkaW
2025-01-10 00:57:37 +08:00
parent c94e28b2b7
commit f51cea7547
5 changed files with 83 additions and 84 deletions

View File

@@ -105,7 +105,8 @@ setGlobalDispatcher(agent.compose(
}),
interceptors.cache({
store: new BetterSqlite3CacheStore({
location: path.resolve(__dirname, '../../.cache/undici-better-sqlite3-cache-store.db')
location: path.resolve(__dirname, '../../.cache/undici-better-sqlite3-cache-store.db'),
maxEntrySize: 1024 * 1024 * 50 // 50 MiB
})
})
));