Skip to content

Commit e9320c6

Browse files
committed
fix metrics port
1 parent 95cc0e6 commit e9320c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/devtools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ function collectAndSendMetrics () {
242242
}
243243

244244
function getWebSocketUrl () {
245-
const wsPort = process.env.WS_SERVER
245+
const wsPort = process.env.WS_PORT
246246
if (!wsPort) return null
247247

248248
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'

src/env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ declare namespace NodeJS {
33
// Build configuration
44
NODE_ENV: 'development' | 'production'
55
SINGLE_FILE_BUILD?: string
6-
WS_SERVER?: string
6+
WS_PORT?: string
77
DISABLE_SERVICE_WORKER?: string
88
CONFIG_JSON_SOURCE?: 'BUNDLED' | 'REMOTE'
99
LOCAL_CONFIG_FILE?: string

0 commit comments

Comments
 (0)