File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
import axios from 'axios'
2
2
3
3
export const apiGatewayClient = axios . create ( {
4
- baseURL :' http://localhost:8000',
4
+ baseURL : process . env . NODE_ENV === 'production' ? ' http://peerprep-g10.com:8000' : 'http:// localhost:8000' ,
5
5
withCredentials : true
6
6
} )
7
7
8
8
9
- export const executionServiceClient = axios . create ( {
10
- baseURL : "http://localhost:8090" ,
11
- withCredentials : true ,
12
- } ) ;
13
-
14
-
15
- export const wsMatchMakeURL = 'http://localhost:7999'
16
- export const wsCollabUrl = 'ws://localhost:7998'
9
+ export const wsMatchMakeURL = process . env . NODE_ENV === 'production' ? 'http://peerprep-g10.com:7999' : 'http://localhost:7999'
10
+ export const wsCollabUrl = process . env . NODE_ENV === 'production' ? 'ws://peerprep-g10.com:7998' :'ws://localhost:7998'
You can’t perform that action at this time.
0 commit comments