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