import express from "express"; import nunjucks from "nunjucks"; import app from "./app.js"; const site = express(); const maxAge = 1000 * 60 * 60 * 24 * 7; nunjucks.configure("templates", { autoescape: true, express: site, }); site.use( express.static(".", { maxAge: maxAge, immutable: true, }) ); site.get("/", app.index); site.listen(8080, () => console.log("app listening on 8080"));