prolog_llm / server.js
fraudTech's picture
fix build
03fb333
Raw History Blame Contribute Delete
479 Bytes
const express = require('express');
const path = require('path');
const app = express();
const PORT = process.env.PORT || 7860;
// Serve static files from build directory
app.use(express.static(path.join(__dirname, 'build')));
// Handle client-side routing - return index.html for all routes
app.get('*', (req, res) => {
res.sendFile(path.join(__dirname, 'build', 'index.html'));
});
app.listen(PORT, '0.0.0.0', () => {
console.log(`Server running on port ${PORT}`);
});