refactor: move server entrypoint to root
This commit is contained in:
15
index.ts
Normal file
15
index.ts
Normal 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}`);
|
||||
Reference in New Issue
Block a user