Commit 82ad33fc authored by 郭志伟's avatar 郭志伟

build(test.config): 修改测试环境接口地址为apollo

parent e36a2e0f
import apollo from '../../../config/apollo.json';
const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'https';
const { api, qiniu } = apollo;
export default {
apiHost: `https://quantum-blocks-vcc2.liangkebang.net/`,
h5Host: 'https://quantum-h5-vcc2.liangkebang.net/',
opapiHost: 'https://opapi-vcc2.liangkebang.net',
qiniuHost: `https://appsync.lkbang.net/`,
...api,
...qiniu,
shenceUrl: `${protocol}//bn.xyqb.com/sa?project=production`,
qiniuUpHost: `${protocol}//up-z0.qiniup.com`,
};
declare module "*.json" {
const value: any;
export default value;
}
\ No newline at end of file
import { Application, EggAppConfig } from 'egg';
import apollo from './apollo.json';
const { mysql, redis } = apollo;
export default (appInfo: EggAppConfig) => {
const exports: any = {};
const localMysqlConfig = {
dialect: 'mysql',
...mysql.low_code
};
exports.sequelize = localMysqlConfig;
exports.redis = {
default: {
keyPrefix: appInfo.name + ':',
},
client: redis
};
return exports;
};
declare module "*.json" {
const value: any;
export default value;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment