This commit is contained in:
2026-02-12 23:54:49 +01:00
commit 724500ae0b
16 changed files with 575 additions and 0 deletions

15
server.ts Normal file
View File

@@ -0,0 +1,15 @@
import * as http from "node:http";
import { createRequestListener } from "@remix-run/node-fetch-server";
import mastro from "@mastrojs/mastro/server";
const port = 8000;
const server = http.createServer(createRequestListener(mastro.fetch));
server.on("error", (e) => {
console.error(e);
});
server.listen(port, () => {
console.log(`Server running at http://localhost:${port}`);
});