support artifact redirect hosts and explicit express port binding

This commit is contained in:
2026-08-20 21:52:14 -07:00
parent 44f2c755f4
commit 103e080664
2 changed files with 29 additions and 12 deletions

View File

@@ -138,7 +138,7 @@ async function start() {
playerExpressApp.get('*', (req, res) => {
res.sendFile(path.join(playerDir, 'index.html'));
});
playerExpressServer = playerExpressApp.listen(3001, () => {
playerExpressServer = playerExpressApp.listen(3001, '0.0.0.0', () => {
console.log('[DEBUG] Player Express server listening on 3001');
});
@@ -155,7 +155,7 @@ async function start() {
});
const FRONTEND_PORT = 4890;
expressServer = expressApp.listen(FRONTEND_PORT, () => {
expressServer = expressApp.listen(FRONTEND_PORT, '0.0.0.0', () => {
console.log(`[DEBUG] Frontend Express server active at http://localhost:${FRONTEND_PORT}`);
sendToTauri('ready', { url: `http://localhost:${FRONTEND_PORT}` });
});