- wechat-miniprogram: 原生小程序,品牌化拆约+玄龙logo,API 指向 https://xhermes.aibay.asia - yaoyue-sever: Express 单文件 server.js + better-sqlite3,GLM glm-5.3-flash(thinking disabled) - 排除 node_modules/.env/*.db
18 lines
378 B
JavaScript
18 lines
378 B
JavaScript
// config.js - 环境配置(一键切换测试/正式)
|
|
|
|
// ===== 在这里切换环境 =====
|
|
const ENV = 'prod'; // 'dev' = 本地测试 | 'prod' = 线上正式
|
|
|
|
const ENVIRONMENTS = {
|
|
dev: {
|
|
apiBaseUrl: 'http://localhost:3001',
|
|
},
|
|
prod: {
|
|
apiBaseUrl: 'https://xhermes.aibay.asia',
|
|
},
|
|
};
|
|
|
|
const config = ENVIRONMENTS[ENV];
|
|
|
|
module.exports = { config, ENV };
|