Harden MVP runtime and fix packaged desktop white screen
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
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 || '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user