Harden MVP runtime and fix packaged desktop white screen
This commit is contained in:
@@ -15,7 +15,8 @@ if (args.has('--help') || args.has('-h')) {
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
const API_BASE = process.env.API_BASE || 'http://localhost:4000/api';
|
||||
const backendPort = process.env.PORT_BACKEND || '4000';
|
||||
const API_BASE = process.env.API_BASE || `http://localhost:${backendPort}/api`;
|
||||
const HEALTH_URL = API_BASE.replace(/\/api\/?$/, '') + '/health';
|
||||
const WRITE_API_KEY = process.env.WRITE_API_KEY || '';
|
||||
const SHOULD_RESTART = args.has('--restart-backend');
|
||||
|
||||
Reference in New Issue
Block a user