// Digital Spaceport Arcade — static server // Pure JS. Serves ./public on 0.0.0.0:8099 const express = require('express'); const path = require('path'); const app = express(); const PORT = process.env.PORT || 8099; const HOST = process.env.HOST || '0.0.0.0'; app.use(express.static(path.join(__dirname, 'public'), { extensions: ['html'], setHeaders(res, filePath) { if (filePath.endsWith('.html')) { res.setHeader('Cache-Control', 'no-cache'); } } })); // Favicon: inline SVG (retro pixel heart) app.get('/favicon.ico', (req, res) => { res.type('image/svg+xml').send( '' + '' + '' + '' + '' + '' + '' ); }); app.get('/healthz', (req, res) => res.json({ ok: true, name: 'digital-spaceport-arcade' })); app.listen(PORT, HOST, () => { console.log(`[dsp-arcade] serving on http://${HOST}:${PORT}`); });