Add Backend website server.
This commit is contained in:
1 parent
25426275e3
commit
e7b55f873b
7 files changed
+104
-13
No files matched your search
@@ -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