Commit a504ebda authored by 郭志伟's avatar 郭志伟

fix: apollo调试

parent 65335ec1
......@@ -3,4 +3,4 @@ import dev from './dev.config';
import test from './test.config';
// export default process.env.NODE_ENV === 'test' ? test : process.env.NODE_ENV === 'production' ? prod : dev;
export default process.env.SENTRY_ENV ? test : process.env.NODE_ENV === 'production' ? prod : dev;
export default process.env.SENTRY_ENV ? test : process.env.NODE_ENV === 'production' ? prod : dev;
// const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'https';
// 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/`,
// shenceUrl: `${protocol}//bn.xyqb.com/sa?project=production`,
// qiniuUpHost: `${protocol}//up-z0.qiniup.com`,
// };
import apollo from '../../../config/apollo.json';
const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'https';
const { api, qiniu } = EASY_ENV_IS_BROWSER ? window.apollo : { api: {}, qiniu: {} };
export default {
...api,
...qiniu,
...apollo.api,
...apollo.qiniu,
shenceUrl: `${protocol}//bn.xyqb.com/sa?project=production`,
};
declare module "*.json" {
const value: any;
export default value;
}
\ No newline at end of file
......@@ -6,16 +6,16 @@
},
"mysql": {
"low_code": {
"host": "mysql",
"port": "3306",
"host": "undefined",
"port": "undefined",
"username": "qa",
"password": "qatest",
"database": "low_code"
}
},
"redis": {
"port": "6379",
"host": "redis",
"port": "undefined",
"host": "undefined",
"password": "",
"db": 0
},
......
import { EggAppConfig } from 'egg';
import * as fs from 'fs';
import * as path from 'path';
import apollo from '../config/apollo.json';
const { api, qiniu } = apollo;
export default (appInfo: EggAppConfig) => {
const config: any = {};
config.siteFile = {
'/favicon.ico': fs.readFileSync(path.join(appInfo.baseDir, 'app/web/asset/images/favicon.ico')),
'/apiHost.js': `var apollo = ${JSON.stringify({ api, qiniu })}`,
'/favicon.ico': fs.readFileSync(path.join(appInfo.baseDir, 'app/web/asset/images/favicon.ico'))
};
config.view = {
......
// This file is created by egg-ts-helper@1.25.8
// This file is created by egg-ts-helper@1.25.9
// Do not modify this file!!!!!!!!!
import 'egg';
......
// This file is created by egg-ts-helper@1.25.8
// This file is created by egg-ts-helper@1.25.9
// Do not modify this file!!!!!!!!!
import 'egg';
......
// This file is created by egg-ts-helper@1.25.8
// This file is created by egg-ts-helper@1.25.9
// Do not modify this file!!!!!!!!!
import 'egg';
......
// This file is created by egg-ts-helper@1.25.8
// This file is created by egg-ts-helper@1.25.9
// Do not modify this file!!!!!!!!!
import 'egg';
......
// This file is created by egg-ts-helper@1.25.8
// This file is created by egg-ts-helper@1.25.9
// Do not modify this file!!!!!!!!!
import 'egg';
......
// This file is created by egg-ts-helper@1.25.8
// This file is created by egg-ts-helper@1.25.9
// Do not modify this file!!!!!!!!!
import 'egg';
......
// This file is created by egg-ts-helper@1.25.8
// This file is created by egg-ts-helper@1.25.9
// Do not modify this file!!!!!!!!!
import 'egg';
......
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