guanghulab/config.js
Guanghu Domestic Migration d1e47f4565
Some checks are pending
自动更新代码和重启 / update-and-restart (push) Waiting to run
CI检查 + 自动部署 / check (push) Waiting to run
CI检查 + 自动部署 / deploy (push) Blocked by required conditions
重启聊天服务 / restart (push) Waiting to run
chore: import sanitized domestic snapshot for REPO-002
Source snapshot: ca48d3ddf926d79aa138306164169baf764bb829
2026-07-17 15:54:41 +08:00

15 lines
434 B
JavaScript

require('dotenv').config();
const config = {
DINGTALK_APP_KEY: process.env.DINGTALK_APP_KEY,
DINGTALK_APP_SECRET: process.env.DINGTALK_APP_SECRET,
DINGTALK_ROBOT_CODE: process.env.DINGTALK_ROBOT_CODE,
PORT: process.env.PORT || 3000
};
// 检查必要配置是否齐全
if (!config.DINGTALK_APP_KEY || !config.DINGTALK_APP_SECRET) {
throw new Error('缺少钉钉配置,请检查 .env 文件');
}
module.exports = config;