File tree Expand file tree Collapse file tree 6 files changed +1523
-1271
lines changed Expand file tree Collapse file tree 6 files changed +1523
-1271
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ var fs = require('fs');
8
8
const port = process . env . PORT ;
9
9
const appHost = process . env . APP_HOST ;
10
10
const appPort = process . env . APP_PORT ;
11
- //const origin = `http:// ${appHost}:${appPort}`
11
+ //const origin = `${appHost}:${appPort}`
12
12
const origin = "*"
13
13
14
14
const server = http . createServer ( function ( req , res ) {
Original file line number Diff line number Diff line change 1
- HOST = 0.0.0.0
2
1
REACT_APP_MapboxAccessToken = token
3
2
REACT_APP_DTServer = http://localhost:8081
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ babel : {
3
+ loaderOptions : {
4
+ ignore : [ './node_modules/mapbox-gl/dist/mapbox-gl.js' ]
5
+ }
6
+ }
7
+ } ;
Original file line number Diff line number Diff line change 4
4
"main" : " index.js" ,
5
5
"license" : " MIT" ,
6
6
"dependencies" : {
7
+ "@craco/craco" : " ^6.3.0" ,
7
8
"@emotion/react" : " ^11.4.0" ,
8
9
"@emotion/styled" : " ^11.3.0" ,
9
10
"@material-ui/core" : " ^4.12.1" ,
36
37
"yarn" : " ^1.22.10"
37
38
},
38
39
"scripts" : {
39
- "start" : " PORT=8080 react-scripts start" ,
40
- "build" : " react-scripts build" ,
41
- "test" : " react-scripts test" ,
40
+ "start" : " PORT=8080 craco start" ,
41
+ "build" : " craco build" ,
42
+ "test" : " craco test" ,
42
43
"eject" : " react-scripts eject"
43
44
},
44
45
"eslintConfig" : {
51
52
"production" : [
52
53
" >0.2%" ,
53
54
" not dead" ,
55
+ " not ie 11" ,
56
+ " not chrome < 51" ,
57
+ " not safari < 10" ,
54
58
" not op_mini all"
55
59
],
56
60
"development" : [
Original file line number Diff line number Diff line change @@ -302,6 +302,7 @@ export function getLocationDT(location) {
302
302
let region = "akl" ;
303
303
let url = DT_SERVER + `/transit?region=${ region } &location=${ location } &direction=inbound` ;
304
304
305
+ console . log ( url ) ;
305
306
// console.log('getting data for destination:', location);
306
307
307
308
const inbound = fetch ( url )
You can’t perform that action at this time.
0 commit comments