File tree Expand file tree Collapse file tree 4 files changed +1011
-300
lines changed
examples/real-time-dashboard Expand file tree Collapse file tree 4 files changed +1011
-300
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import tracker from "./tracker";
99const CUBEJS_TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1NzM2MjI5MjR9.iD_sSpXRBQSO0ywh5zSPHpHV-1O37oQMakrkG03kR-o" ;
1010let WS_URL ;
1111if ( process . env . NODE_ENV === 'production' ) {
12- WS_URL = "wss://real-time-dashboard-demo.cube.dev/"
12+ WS_URL = window . location . origin . replace ( 'http' , 'ws' ) . replace ( 'https' , 'wss' )
1313} else {
1414 WS_URL = "ws://localhost:4000/"
1515}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { fetch } from "whatwg-fetch";
44
55let URL ;
66if ( process . env . NODE_ENV === 'production' ) {
7- URL = "https://real-time-dashboard-demo.cube.dev"
7+ URL = window . location . origin
88} else {
99 URL = "http://localhost:4000"
1010}
Original file line number Diff line number Diff line change 88 "start" : " node index.js"
99 },
1010 "dependencies" : {
11- "@cubejs-backend/mongobi-driver" : " ^0.11.6 " ,
12- "@cubejs-backend/server" : " ^0.11.16 " ,
11+ "@cubejs-backend/mongobi-driver" : " ^0.13.0 " ,
12+ "@cubejs-backend/server" : " ^0.13.1 " ,
1313 "moment" : " ^2.24.0" ,
1414 "mongodb" : " ^3.3.3" ,
1515 "serve-static" : " ^1.14.1"
You can’t perform that action at this time.
0 commit comments