File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
server/app/service/tugraph Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11import { defineConfig } from 'umi' ;
22import routes from './src/config/routes' ;
33import { GetEnvironmentVariables } from '../server/app/util' ;
4+ import env from '../env.json' ;
45
56process . env . MFSU_AD = 'none' ;
67
@@ -50,6 +51,7 @@ export default defineConfig({
5051 'process.env' : {
5152 HOST : GetEnvironmentVariables ( process . env ) ,
5253 ...process . env ,
54+ ...env ,
5355 } ,
5456 } ,
5557} ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "tugraph_db_host" : " http://47.105.42.70:9090"
3+ }
Original file line number Diff line number Diff line change 1- import { log } from 'console' ;
21import { GetEnvironmentVariables } from '../../util' ;
3- log ( GetEnvironmentVariables ( process . env ) , 'server' ) ;
2+ import env from '../../../../env.json' ;
43const HOST = GetEnvironmentVariables ( process . env ) ;
4+
55export const HOST_URL = `http://47.105.42.70:9090` ;
66export const DEV_HOST_URL = 'http://127.0.0.1:9090' ;
77export const EngineServerURL = `${
8+ env ?. tugraph_db_host ||
89 HOST ?. tugraph_db_host ||
910 ( process . env ?. NODE_ENV === 'production' ? DEV_HOST_URL : HOST_URL )
1011} /LGraphHttpService/Query`;
11- log ( EngineServerURL , 'eng' ) ;
You can’t perform that action at this time.
0 commit comments