const express = require('express'); const path = require('path'); const app = express(); const webDir = path.join(__dirname, '..', 'web'); app.use(express.static(webDir)); app.get('/', (req, res) => { res.sendFile(path.join(webDir, 'index.html')); }); const PORT = process.env.PORT || 3000; const HOST = process.env.HOST || '0.0.0.0'; app.listen(PORT, HOST, () => { console.log(`Static server running on http://${HOST}:${PORT}`); });