mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
remove websocketApi
This commit is contained in:
parent
14f4f82d11
commit
1c6490364c
@ -7,19 +7,16 @@ const envOrigins = {
|
||||
"development": {
|
||||
mainApi: `http://${window.location.hostname}:3000`,
|
||||
authApi: `http://${window.location.hostname}:4000`,
|
||||
websocketApi: `ws://${window.location.hostname}:3001`,
|
||||
streamingApi: `http://${window.location.hostname}:3002`,
|
||||
},
|
||||
"indev": {
|
||||
mainApi: "https://indev_api.comty.pw",
|
||||
authApi: `http://indev_auth.comty.pw`,
|
||||
websocketApi: "wss://indev_ws.comty.pw",
|
||||
streamingApi: "https://indev_live.comty.pw",
|
||||
},
|
||||
"nightly": {
|
||||
mainApi: "https://nightly_api.comty.pw",
|
||||
authApi: `https://nightly_auth.comty.pw`,
|
||||
websocketApi: "wss://nightly_ws.comty.pw",
|
||||
streamingApi: "https://nightly_live.comty.pw"
|
||||
}
|
||||
}
|
||||
@ -38,7 +35,6 @@ export default {
|
||||
remotes: {
|
||||
mainApi: process.env.NODE_ENV !== "production" ? envOrigins[process.env.NODE_ENV].mainApi : defaultRemotesOrigins.main_api,
|
||||
authApi: process.env.NODE_ENV !== "production" ? envOrigins[process.env.NODE_ENV].authApi : defaultRemotesOrigins.auth_api,
|
||||
websocketApi: process.env.NODE_ENV !== "production" ? envOrigins[process.env.NODE_ENV].websocketApi : defaultRemotesOrigins.websocket_api,
|
||||
streamingApi: process.env.NODE_ENV !== "production" ? envOrigins[process.env.NODE_ENV].streamingApi : defaultRemotesOrigins.streaming_api,
|
||||
},
|
||||
app: {
|
||||
|
@ -1,6 +1,5 @@
|
||||
{
|
||||
"main_api": "https://api.comty.pw",
|
||||
"auth_api": "https://auth.ragestudio.net",
|
||||
"streaming_api": "https://live.comty.pw",
|
||||
"websocket_api": "wss://ws.comty.pw"
|
||||
"streaming_api": "https://live.comty.pw"
|
||||
}
|
@ -82,7 +82,6 @@ export default class ApiCore extends Core {
|
||||
onResponse: handleResponse,
|
||||
...params,
|
||||
origin: params.httpAddress ?? config.remotes.mainApi,
|
||||
wsOrigin: params.wsAddress ?? config.remotes.websocketApi,
|
||||
}
|
||||
|
||||
const bridge = new Bridge(bridgeOptions)
|
||||
|
Loading…
x
Reference in New Issue
Block a user