[wip] kefir cleanup
This commit is contained in:
12
pkg/server/src/static.ts
Normal file
12
pkg/server/src/static.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import staticPlugin from "@elysiajs/static";
|
||||
import Elysia from "elysia";
|
||||
|
||||
export default new Elysia()
|
||||
.get("/*", () => Bun.file("./public/index.html"))
|
||||
.use(
|
||||
staticPlugin({
|
||||
assets: "public",
|
||||
prefix: "/",
|
||||
alwaysStatic: true,
|
||||
})
|
||||
);
|
||||
Reference in New Issue
Block a user