add TOKEN env
This commit is contained in:
5
envs.js
5
envs.js
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user