-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathproperties.js
More file actions
17 lines (16 loc) · 871 Bytes
/
properties.js
File metadata and controls
17 lines (16 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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/',
isTestRunner: process.env.TEST_RUNNER === 'true' || false
}
export default properties