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