update remotes

This commit is contained in:
SrGooglo 2022-12-14 15:33:09 +00:00
parent dc081e8f48
commit 281aaf7466
2 changed files with 4 additions and 16 deletions

View File

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

View File

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