refactor: move server entrypoint to root

This commit is contained in:
syntaxbullet
2026-07-02 22:52:46 +02:00
parent 64838e85ba
commit 5f767a6688
2 changed files with 3 additions and 3 deletions

15
index.ts Normal file
View File

@@ -0,0 +1,15 @@
import { serve } from "bun";
import index from "./view/index.html";
const server = serve({
routes: {
"/*": index,
},
development: process.env.NODE_ENV !== "production" && {
hmr: true,
console: true,
},
});
console.log(`Server running at ${server.url}`);