first commit

This commit is contained in:
wsq
2026-05-13 21:58:19 +08:00
commit 0167c66cb7
1475 changed files with 233414 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
export async function setProxy() {
if (process.env.PROXY_URL) { // If you are in China, you must use this proxy:
const { setGlobalDispatcher, ProxyAgent } = await import("undici");
const proxyAgent = new ProxyAgent(process.env.PROXY_URL);
setGlobalDispatcher(proxyAgent);
}
}