deployed 0.1
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -7,6 +7,10 @@ import vueDevTools from 'vite-plugin-vue-devtools'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
base: process.env.VITE_BASE_PATH || '/',
|
||||
server: {
|
||||
allowedHosts: ['.dexorder.ai']
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
// if using SCSS
|
||||
|
||||
Reference in New Issue
Block a user