diff --git a/packages/app/config/index.js b/packages/app/config/index.js index 847105ed..bc7ac92d 100644 --- a/packages/app/config/index.js +++ b/packages/app/config/index.js @@ -13,9 +13,9 @@ export default { full: "/logo_full.svg", }, remotes: { - mainApi: defaultRemotesOrigins.main_api, //process.env.NODE_ENV !== "production" ? `http://${window.location.hostname}:3000` : defaultRemotesOrigins.http_api - streamingApi: defaultRemotesOrigins.streaming_api, //process.env.NODE_ENV !== "production" ? `ws://${window.location.hostname}:3001` : defaultRemotesOrigins.ws_api - websocketApi: defaultRemotesOrigins.websocket_api, + mainApi: process.env.NODE_ENV !== "production" ? `http://${window.location.hostname}:3000` : defaultRemotesOrigins.main_api, + streamingApi: defaultRemotesOrigins.streaming_api, + websocketApi: process.env.NODE_ENV !== "production" ? `ws://${window.location.hostname}:3000` : defaultRemotesOrigins.websocket_api, }, app: { title: packagejson.name, diff --git a/packages/app/constants/defaultRemotesOrigins.json b/packages/app/constants/defaultRemotesOrigins.json index ff51259a..e4ed3ec8 100644 --- a/packages/app/constants/defaultRemotesOrigins.json +++ b/packages/app/constants/defaultRemotesOrigins.json @@ -1,5 +1,5 @@ { - "main_api": "http://localhost:3000", - "streaming_api": "http://localhost:3002", - "websocket_api": "ws://localhost:3001" + "main_api": "https://api.comty.pw", + "streaming_api": "https://media_api.comty.pw", + "websocket_api": "wss://api.comty.pw" } \ No newline at end of file