11 lines
319 B
TypeScript
11 lines
319 B
TypeScript
import { serve } from "@hono/node-server";
|
|
import app from "../../.external/freestyle/apps/server/src/index.js";
|
|
|
|
const port = process.env.PORT ? parseInt(process.env.PORT, 10) : 8766;
|
|
|
|
serve({
|
|
fetch: app.fetch,
|
|
port,
|
|
}, (info) => {
|
|
console.log(`Freestyle server listening on http://localhost:${info.port}`);
|
|
});
|