build ready (I hope)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user