const express = require('express');
const app = express();
// Step 1: Set the server timeout value in milliseconds
const serverTimeoutMillis = 30000; // 30 seconds
// Step 2: Set the server timeout using the server timeout property
app.timeout = serverTimeoutMillis;
// Step 3: Create a simple route for testing
app.get('/', (req, res) => {
res.send('Hello, world!');
});
// Step 4: Start the server on a specific port
const port = 3000;
app.listen(port, () => {
console.log(`Server is listening on port ${port}`);
});