dirty but the initial concept is working

This commit is contained in:
Joeri Exelmans 2025-10-04 23:13:55 +02:00
commit a72653fcce
18 changed files with 1014 additions and 0 deletions

19
src/index.tsx Normal file
View file

@ -0,0 +1,19 @@
import { serve } from "bun";
import index from "./index.html";
const server = serve({
routes: {
// Serve index.html for all unmatched routes.
"/*": index,
},
development: process.env.NODE_ENV !== "production" && {
// Enable browser hot reloading in development
hmr: true,
// Echo console logs from the browser to the server
console: true,
},
});
console.log(`🚀 Server running at ${server.url}`);