Files
427e7578-d7bf-49c8-aee9-2dd…/dist/serve-node.js
yannickschuchmann b936095286 Add implementation
2026-03-08 18:01:28 +00:00

14 lines
356 B
JavaScript

import { INTERNAL_runFetch, unstable_serverEntry } from './server/index.js';
const { serve } = unstable_serverEntry;
const host = process.env.HOST;
const port = process.env.PORT;
serve({
fetch: (req, ...args) => INTERNAL_runFetch(process.env, req, ...args),
...(host ? { hostname: host } : {}),
...(port ? { port: parseInt(port, 10) } : {}),
});