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 1313 "build:electron" : " ts-node ./setup-server.ts && electron-builder build" ,
1414 "build:dir-only" : " ts-node ./setup-server.ts && electron-builder --dir" ,
1515 "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" ,
1717 "start:app" : " tsc-watch --onSuccess 'electron .'"
1818 },
1919 "keywords" : [],
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ const packageJson = require('../package.json');
4141
4242const isWindows = os . platform ( ) === 'win32' ;
4343
44+ const DEV_MODE = process . env . HTK_DEV === 'true' ;
4445const APP_URL = process . env . APP_URL || 'https://app.httptoolkit.tech' ;
4546const AUTH_TOKEN = uuid ( ) ;
4647const DESKTOP_VERSION = packageJson . version ;
@@ -439,6 +440,7 @@ if (!amMainInstance) {
439440
440441 const portCheck = checkServerPortAvailable ( '127.0.0.1' , 45457 )
441442 . catch ( async ( ) => {
443+ if ( DEV_MODE ) return ; // In full dev mode this is OK & expected
442444 await appReady . promise ;
443445
444446 showErrorAlert (
You can’t perform that action at this time.
0 commit comments