File tree 7 files changed +9
-8
lines changed
7 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 10
10
11
11
12
12
## Configuration
13
- Configuration files are located under ` config ` dir .
13
+ Configuration files are located under ` config ` and ` src/config ` directories .
14
14
See Guild https://github.com/lorenwest/node-config/wiki/Configuration-Files
15
15
16
16
| Name| Description|
17
17
| ----| -----------|
18
18
| ` PORT ` | The port to listen|
19
19
| ` GOOGLE_API_KEY ` | The google api key see (https://developers.google.com/maps/documentation/javascript/get-api-key#key) |
20
20
| ` API_BASE_URL ` | The base URL for Drone API |
21
+ | ` REACT_APP_API_BASE_PATH ` | The React app api base path`|
22
+ | ` REACT_APP_SOCKET_URL ` | The React app app socket url`|
23
+ | ` REACT_APP_AUTH0_CLIEND_ID ` | The React app auth0 client id`|
24
+ | ` REACT_APP_AUTH0_DOMAIN ` | The React app auth0 domain`|
21
25
22
26
23
27
## Install dependencies
Original file line number Diff line number Diff line change @@ -8,5 +8,4 @@ module.exports = {
8
8
9
9
// below env variables are visible in frontend
10
10
GOOGLE_API_KEY : process . env . GOOGLE_API_KEY || 'AIzaSyCrL-O319wNJK8kk8J_JAYsWgu6yo5YsDI' ,
11
- API_BASE_PATH : process . env . API_BASE_PATH || 'https://kb-dsp-server-dev.herokuapp.com' ,
12
11
} ;
Original file line number Diff line number Diff line change @@ -8,5 +8,4 @@ module.exports = {
8
8
9
9
// below env variables are visible in frontend
10
10
GOOGLE_API_KEY : process . env . GOOGLE_API_KEY || 'AIzaSyCrL-O319wNJK8kk8J_JAYsWgu6yo5YsDI' ,
11
- API_BASE_PATH : process . env . API_BASE_PATH || 'https://kb-dsp-server-dev.herokuapp.com' ,
12
11
} ;
Original file line number Diff line number Diff line change @@ -8,5 +8,4 @@ module.exports = {
8
8
9
9
// below env variables are visible in frontend
10
10
GOOGLE_API_KEY : process . env . GOOGLE_API_KEY || 'AIzaSyCrL-O319wNJK8kk8J_JAYsWgu6yo5YsDI' ,
11
- API_BASE_PATH : process . env . API_BASE_PATH || 'https://kb-dsp-server-dev.herokuapp.com' ,
12
11
} ;
Original file line number Diff line number Diff line change @@ -8,5 +8,4 @@ module.exports = {
8
8
9
9
// below env variables are visible in frontend
10
10
GOOGLE_API_KEY : process . env . GOOGLE_API_KEY || 'AIzaSyCrL-O319wNJK8kk8J_JAYsWgu6yo5YsDI' ,
11
- API_BASE_PATH : process . env . API_BASE_PATH || 'https://kb-dsp-server-dev.herokuapp.com' ,
12
11
} ;
Original file line number Diff line number Diff line change @@ -8,5 +8,4 @@ module.exports = {
8
8
9
9
// below env variables are visible in frontend
10
10
GOOGLE_API_KEY : process . env . GOOGLE_API_KEY || 'AIzaSyCrL-O319wNJK8kk8J_JAYsWgu6yo5YsDI' ,
11
- API_BASE_PATH : process . env . API_BASE_PATH || 'https://kb-dsp-server-dev.herokuapp.com' ,
12
11
} ;
Original file line number Diff line number Diff line change 2
2
3
3
const path = require ( 'path' ) ;
4
4
const _ = require ( 'lodash' ) ;
5
- const ip = require ( 'ip' ) ;
6
5
const webpack = require ( 'webpack' ) ;
7
6
const config = require ( 'config' ) ;
8
7
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
@@ -100,7 +99,10 @@ module.exports = {
100
99
'process.env' : {
101
100
NODE_ENV : JSON . stringify ( process . env . NODE_ENV ) ,
102
101
GOOGLE_API_KEY : JSON . stringify ( process . env . GOOGLE_API_KEY ) ,
103
- API_BASE_URL : JSON . stringify ( process . env . API_BASE_URL ) ,
102
+ REACT_APP_API_BASE_PATH : JSON . stringify ( process . env . REACT_APP_API_BASE_PATH ) ,
103
+ REACT_APP_SOCKET_URL : JSON . stringify ( process . env . REACT_APP_SOCKET_URL ) ,
104
+ REACT_APP_AUTH0_CLIEND_ID : JSON . stringify ( process . env . REACT_APP_AUTH0_CLIEND_ID ) ,
105
+ REACT_APP_AUTH0_DOMAIN : JSON . stringify ( process . env . REACT_APP_AUTH0_DOMAIN ) ,
104
106
} ,
105
107
} ) ,
106
108
new HtmlWebpackPlugin ( {
You can’t perform that action at this time.
0 commit comments