File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const MIGRATION_FILE = path.join(HOME, "migration.json");
21
21
const USER_DATA_FILE = path . join ( HOME , "config.json" ) ;
22
22
const REACT_APP_LOCATION = `file://${ path . join ( __dirname , '../build/index.html' ) } `
23
23
const DEFAULT_FILE_SERVER_PORT = "8080" ;
24
- const ENV = "dev ";
24
+ const ENV = process . env . RUNTIME_ENV || "prod ";
25
25
26
26
console . log ( "HOME: " + HOME ) ;
27
27
console . log ( "CONFIG FILE: " + CONFIG_FILE ) ;
@@ -59,13 +59,11 @@ if (!fs.existsSync(CONFIG_FILE)) {
59
59
"redemptions" : { } ,
60
60
"gauges" : { } ,
61
61
"commands" : { } ,
62
- "clientId" : "" ,
63
- "clientSecret" : "" ,
64
62
"twitchChannel" : "" ,
65
63
"broadcasterId" : "" ,
66
64
"profileImage" : "" ,
67
65
"accessToken" : "" ,
68
- "refreshToken" : ""
66
+ "refreshToken" : "" ,
69
67
} ) ) ;
70
68
}
71
69
@@ -117,7 +115,7 @@ const createWindow = async () => {
117
115
} ,
118
116
} ) ;
119
117
// and load the index.html of the app.
120
- if ( ENV === "dev" ) {
118
+ if ( ENV === "dev" ) {
121
119
//for dev
122
120
win . loadURL ( 'http://localhost:3000/' ) ;
123
121
} else if ( ENV === "prod" || ENV === "production" ) {
You can’t perform that action at this time.
0 commit comments