Add Backend website server.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { createServer } from 'node:http';
|
||||
import { handler } from '../build/handler.js';
|
||||
|
||||
const port = process.env.PORT || 3000;
|
||||
const server = createServer(handler as any);
|
||||
|
||||
server.listen(port, () => {
|
||||
console.log(`Bun Server is listening on http://localhost:${port}`);
|
||||
});
|
||||
Reference in New Issue
Block a user