Revert "feat: express server"

This reverts commit 0285128b7e.
This commit is contained in:
Torsten Dittmann
2023-10-02 23:21:17 +02:00
parent 0285128b7e
commit 556e02cb5e
6 changed files with 64 additions and 531 deletions

View File

@@ -1,20 +0,0 @@
import express from 'express';
import compression from 'compression'
import { sitemap } from './sitemap.js'
import { handler } from '../build/handler.js';
async function main() {
const app = express();
app.use(compression());
app.use(await sitemap());
app.use(handler);
app.use(function (req, res, next) {
res.setHeader('Cache-Control', 'max-age 3600, must-revalidate');
next();
});
app.listen(3000, () => {
console.log('Listening on http://0.0.0.0:3000');
});
}
main();