deployed 0.1

This commit is contained in:
2026-03-04 00:56:08 -04:00
parent bf7af2b426
commit 185fa42caa
14 changed files with 371 additions and 27 deletions

View File

@@ -31,7 +31,7 @@ onMounted(() => {
datafeed: datafeed,
interval: chartStore.chart_state.interval as any,
container: chartContainer.value!,
library_path: '/charting_library/',
library_path: 'charting_library/',
locale: 'en',
disabled_features: [
'use_localstorage_for_settings',

View File

@@ -43,9 +43,9 @@ class WebSocketManager {
}
return new Promise((resolve, reject) => {
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'
const host = window.location.hostname
this.ws = new WebSocket(`${protocol}//${host}:8080/ws`)
// Use env variable for WebSocket URL, fallback to localhost for dev
const wsUrl = import.meta.env.VITE_WS_URL || 'ws://localhost:8080/ws'
this.ws = new WebSocket(wsUrl)
this.authResolve = resolve