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 1
1
import { defineConfig } from 'umi' ;
2
2
import routes from './src/config/routes' ;
3
3
import { GetEnvironmentVariables } from '../server/app/util' ;
4
+ import env from '../env.json' ;
4
5
5
6
process . env . MFSU_AD = 'none' ;
6
7
@@ -50,6 +51,7 @@ export default defineConfig({
50
51
'process.env' : {
51
52
HOST : GetEnvironmentVariables ( process . env ) ,
52
53
...process . env ,
54
+ ...env ,
53
55
} ,
54
56
} ,
55
57
} ) ;
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' ;
2
1
import { GetEnvironmentVariables } from '../../util' ;
3
- log ( GetEnvironmentVariables ( process . env ) , 'server' ) ;
2
+ import env from '../../../../env.json' ;
4
3
const HOST = GetEnvironmentVariables ( process . env ) ;
4
+
5
5
export const HOST_URL = `http://47.105.42.70:9090` ;
6
6
export const DEV_HOST_URL = 'http://127.0.0.1:9090' ;
7
7
export const EngineServerURL = `${
8
+ env ?. tugraph_db_host ||
8
9
HOST ?. tugraph_db_host ||
9
10
( process . env ?. NODE_ENV === 'production' ? DEV_HOST_URL : HOST_URL )
10
11
} /LGraphHttpService/Query`;
11
- log ( EngineServerURL , 'eng' ) ;
You can’t perform that action at this time.
0 commit comments