add TOKEN env

This commit is contained in:
Yrobot
2025-12-07 12:17:48 +08:00
parent e82fa419e9
commit 61b3aecfea
5 changed files with 118 additions and 25 deletions

View File

@@ -16,6 +16,11 @@ export const env = {
// Google Custom Search API credentials
GOOGLE_API_KEY: null,
GOOGLE_CX: null,
// API 访问令牌 - API access token for authentication
// 如果设置了 TOKEN则所有 /search 请求都需要在 header 或 query 中提供此 token
// If TOKEN is set, all /search requests must provide this token in header or query
TOKEN: null,
};
export const setEnv = (newEnv) => {