File tree 4 files changed +1011
-300
lines changed
examples/real-time-dashboard
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";
9
9
const CUBEJS_TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1NzM2MjI5MjR9.iD_sSpXRBQSO0ywh5zSPHpHV-1O37oQMakrkG03kR-o" ;
10
10
let WS_URL ;
11
11
if ( 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' )
13
13
} else {
14
14
WS_URL = "ws://localhost:4000/"
15
15
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { fetch } from "whatwg-fetch";
4
4
5
5
let URL ;
6
6
if ( process . env . NODE_ENV === 'production' ) {
7
- URL = "https://real-time-dashboard-demo.cube.dev"
7
+ URL = window . location . origin
8
8
} else {
9
9
URL = "http://localhost:4000"
10
10
}
Original file line number Diff line number Diff line change 8
8
"start" : " node index.js"
9
9
},
10
10
"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 " ,
13
13
"moment" : " ^2.24.0" ,
14
14
"mongodb" : " ^3.3.3" ,
15
15
"serve-static" : " ^1.14.1"
You can’t perform that action at this time.
0 commit comments