mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-25 19:15:18 +02:00
fix(desktop): bind to 0.0.0.0 and silence auto-updater 404
This commit is contained in:
parent
a1119c401f
commit
f783b00d2e
2 changed files with 3 additions and 3 deletions
|
|
@ -26,8 +26,8 @@ export function setupAutoUpdater(): void {
|
||||||
});
|
});
|
||||||
|
|
||||||
autoUpdater.on('error', (err) => {
|
autoUpdater.on('error', (err) => {
|
||||||
console.error('Auto-updater error:', err);
|
console.log('Auto-updater: update check skipped —', err.message?.split('\n')[0]);
|
||||||
});
|
});
|
||||||
|
|
||||||
autoUpdater.checkForUpdates();
|
autoUpdater.checkForUpdates().catch(() => {});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ export async function startNextServer(): Promise<void> {
|
||||||
const serverScript = path.join(standalonePath, 'server.js');
|
const serverScript = path.join(standalonePath, 'server.js');
|
||||||
|
|
||||||
process.env.PORT = String(serverPort);
|
process.env.PORT = String(serverPort);
|
||||||
process.env.HOSTNAME = 'localhost';
|
process.env.HOSTNAME = '0.0.0.0';
|
||||||
process.env.NODE_ENV = 'production';
|
process.env.NODE_ENV = 'production';
|
||||||
process.chdir(standalonePath);
|
process.chdir(standalonePath);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue