update remotes

This commit is contained in:
SrGooglo 2022-12-14 15:33:09 +00:00
parent 806a39e756
commit 0ecac67480
2 changed files with 4 additions and 16 deletions

View File

@ -6,27 +6,17 @@ import defaultRemotesOrigins from "../constants/defaultRemotesOrigins.json"
const envOrigins = {
"development": {
mainApi: `http://${window.location.hostname}:3000`,
authApi: `http://${window.location.hostname}:4000`,
contentApi: `http://${window.location.hostname}:3050`,
streamingApi: `http://${window.location.hostname}:3002`,
messagingApi: `http://${window.location.hostname}:3020`,
},
"production": {
mainApi: "http://api.comty.pw",
authApi: "http://auth.comty.pw",
contentApi: "http://content.comty.pw",
streamingApi: "http://streaming.comty.pw",
messagingApi: `http://api.comty.pw/messaging`,
},
"indev": {
mainApi: "https://indev_api.comty.pw",
authApi: `http://indev_auth.comty.pw`,
contentApi: `http://indev_content.comty.pw`,
streamingApi: "https://indev_live.comty.pw",
},
"nightly": {
mainApi: "https://nightly_api.comty.pw",
authApi: `https://nightly_auth.comty.pw`,
contentApi: `https://nightly_content.comty.pw`,
streamingApi: "https://nightly_live.comty.pw"
}
}
@ -65,8 +55,7 @@ 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,
streamingApi: process.env.NODE_ENV !== "production" ? envOrigins[process.env.NODE_ENV].streamingApi : defaultRemotesOrigins.streaming_api,
messagingApi: process.env.NODE_ENV !== "production" ? envOrigins[process.env.NODE_ENV].messagingApi : defaultRemotesOrigins.messagingApi,
},
app: {
title: packagejson.name,

View File

@ -1,5 +1,4 @@
{
"main_api": "https://api.comty.pw",
"auth_api": "https://auth.ragestudio.net",
"streaming_api": "https://live.comty.pw"
"messagingApi": "https://api.ragestudio.net/messaging"
}