File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 13
13
"build:electron" : " ts-node ./setup-server.ts && electron-builder build" ,
14
14
"build:dir-only" : " ts-node ./setup-server.ts && electron-builder --dir" ,
15
15
"start" : " ts-node ./setup-server.ts && npm run start:app" ,
16
- "start:dev" : " ts-node ./skip-server.ts && cross-env APP_URL='http://local.httptoolkit.tech:8080' npm run start:app" ,
16
+ "start:dev" : " ts-node ./skip-server.ts && cross-env HTK_DEV=true APP_URL='http://local.httptoolkit.tech:8080' npm run start:app" ,
17
17
"start:app" : " tsc-watch --onSuccess 'electron .'"
18
18
},
19
19
"keywords" : [],
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ const packageJson = require('../package.json');
41
41
42
42
const isWindows = os . platform ( ) === 'win32' ;
43
43
44
+ const DEV_MODE = process . env . HTK_DEV === 'true' ;
44
45
const APP_URL = process . env . APP_URL || 'https://app.httptoolkit.tech' ;
45
46
const AUTH_TOKEN = uuid ( ) ;
46
47
const DESKTOP_VERSION = packageJson . version ;
@@ -439,6 +440,7 @@ if (!amMainInstance) {
439
440
440
441
const portCheck = checkServerPortAvailable ( '127.0.0.1' , 45457 )
441
442
. catch ( async ( ) => {
443
+ if ( DEV_MODE ) return ; // In full dev mode this is OK & expected
442
444
await appReady . promise ;
443
445
444
446
showErrorAlert (
You can’t perform that action at this time.
0 commit comments