Skip to content

Commit 79a2575

Browse files
committed
update w production server urls
1 parent 9f341c6 commit 79a2575

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

frontend/src/api/gateway.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
import axios from 'axios'
22

33
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' ,
55
withCredentials: true
66
})
77

88

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'

0 commit comments

Comments
 (0)