forked from Coflnet/hypixel-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproperties.js
More file actions
14 lines (13 loc) · 783 Bytes
/
properties.js
File metadata and controls
14 lines (13 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
let properties = {}
let isSSR = typeof window === 'undefined'
properties = {
commandEndpoint:
isSSR || window.location.host.startsWith("localhost")|| window.location.hostname.includes('pr-env-sky-') ? 'https://sky.coflnet.com/command' : '/command',
apiEndpoint:
isSSR || window.location.host.startsWith("localhost") || window.location.hostname.includes('pr-env-sky-') ? 'https://sky.coflnet.com/api' : '/api',
websocketEndpoint: isSSR || window.location.host === 'localhost:8008' ? 'ws://localhost:8008/skyblock' : 'wss://sky.coflnet.com/skyblock',
refLink: 'https://sky.coflnet.com/refed',
websocketOldEndpoint: 'wss://skyblock-backend.coflnet.com/skyblock',
feedbackEndpoint: 'https://feedback.coflnet.com/api/'
}
export default properties