mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 19:44:15 +00:00
update remotes
This commit is contained in:
parent
ec1a52fcf6
commit
e9b81c4635
@ -1,22 +1,19 @@
|
|||||||
import packagejson from "../package.json"
|
import packagejson from "../package.json"
|
||||||
import defaultTheme from "../constants/defaultTheme.json"
|
import defaultTheme from "../constants/defaultTheme.json"
|
||||||
import defaultSoundPack from "../constants/defaultSoundPack.json"
|
import defaultSoundPack from "../constants/defaultSoundPack.json"
|
||||||
import defaultRemotesOrigins from "../constants/defaultRemotesOrigins.json"
|
|
||||||
|
|
||||||
const envOrigins = {
|
const envOrigins = {
|
||||||
"development": {
|
"localhost": {
|
||||||
mainApi: `http://${window.location.hostname}:3010`,
|
mainApi: `http://${window.location.hostname}:3010`,
|
||||||
messagingApi: `http://${window.location.hostname}:3020`,
|
messagingApi: `http://${window.location.hostname}:3020`,
|
||||||
},
|
},
|
||||||
|
"development": {
|
||||||
|
mainApi: `https://indev_api.comty.app`,
|
||||||
|
messagingApi: `https://indev_messaging_api.comty.app`,
|
||||||
|
},
|
||||||
"production": {
|
"production": {
|
||||||
mainApi: "http://api.comty.app",
|
mainApi: "https://api.comty.app",
|
||||||
messagingApi: `https://messaging_api.comty.app`,
|
messagingApi: `https://messaging_api.comty.app`,
|
||||||
},
|
|
||||||
"indev": {
|
|
||||||
mainApi: "https://indev_api.comty.app",
|
|
||||||
},
|
|
||||||
"nightly": {
|
|
||||||
mainApi: "https://nightly_api.comty.app",
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,9 +53,9 @@ export default {
|
|||||||
ragestudio_alt: "https://storage.ragestudio.net/rstudio/branding/ragestudio/iso/ragestudio.svg",
|
ragestudio_alt: "https://storage.ragestudio.net/rstudio/branding/ragestudio/iso/ragestudio.svg",
|
||||||
ragestudio_full: "https://storage.ragestudio.net/rstudio/branding/ragestudio/labeled/ragestudio-labeled_white.svg",
|
ragestudio_full: "https://storage.ragestudio.net/rstudio/branding/ragestudio/labeled/ragestudio-labeled_white.svg",
|
||||||
},
|
},
|
||||||
remotes: {
|
remotes:{
|
||||||
mainApi: process.env.NODE_ENV !== "production" ? envOrigins[process.env.NODE_ENV].mainApi : defaultRemotesOrigins.main_api,
|
mainApi: window.location.hostname === "localhost" ? envOrigins["development"].mainApi : envOrigins[process.env.NODE_ENV].mainApi,
|
||||||
messagingApi: process.env.NODE_ENV !== "production" ? envOrigins[process.env.NODE_ENV].messagingApi : defaultRemotesOrigins.messagingApi,
|
messagingApi: window.location.hostname === "localhost" ? envOrigins["development"].messagingApi : envOrigins[process.env.NODE_ENV].messagingApi,
|
||||||
},
|
},
|
||||||
app: {
|
app: {
|
||||||
title: packagejson.name,
|
title: packagejson.name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user