This commit is contained in:
Yrobot
2025-12-07 00:13:06 +08:00
parent d8e667106a
commit fec8d0cbe0
12 changed files with 1099 additions and 0 deletions

23
envs.js Normal file
View File

@@ -0,0 +1,23 @@
export const env = {
// 默认超时时间(毫秒) - Default timeout in milliseconds
DEFAULT_TIMEOUT: "3000",
// 支持的搜索引擎列表 - Supported search engines
SUPPORTED_ENGINES: ["google", "brave", "duckduckgo", "bing"],
// 默认启用的搜索引擎 - Default enabled engines
DEFAULT_ENGINES: [
"google",
"brave",
"duckduckgo",
// "bing" // Bing 目前结果不稳定,默认禁用 - Bing results are currently unstable, disabled by default
],
// Google Custom Search API credentials
GOOGLE_API_KEY: null,
GOOGLE_CX: null,
};
export const setEnv = (newEnv) => {
Object.assign(env, newEnv);
};