build ready (I hope)

This commit is contained in:
2025-08-10 18:46:45 -04:00
parent 32c516bf37
commit a8a6d02cc7
12 changed files with 67 additions and 62 deletions

View File

@@ -17,7 +17,14 @@ const app = new Elysia()
})
.get("/ping", () => "pong")
.use(api)
.use(staticPlugin({ assets: "./dist", prefix: "" }))
.get("/*", () => Bun.file("./public/index.html"))
.use(
staticPlugin({
assets: "public",
prefix: "/",
alwaysStatic: true,
})
)
.listen(port);
console.log("server started on", port);