main
Ethan Niser 2023-09-18 23:59:41 -05:00
parent ccab03d078
commit 1730f0dcda
4 changed files with 5 additions and 3 deletions

Binary file not shown.

@ -37,6 +37,7 @@
"@libsql/client": "0.3.5-pre.4",
"@lucia-auth/adapter-sqlite": "^2.0.0",
"@t3-oss/env-core": "^0.6.1",
"@tlscipher/holt": "^1.0.4",
"beth-stack": "0.0.18",
"drizzle-orm": "^0.28.6",
"drizzle-typebox": "^0.1.1",

@ -1,4 +1,5 @@
import { logger } from "@bogeychan/elysia-logger";
// import { HoltLogger } from "@tlscipher/holt";
import { bethStack } from "beth-stack/elysia";
import { Elysia } from "elysia";
import pretty from "pino-pretty";
@ -43,7 +44,7 @@ export const ctx = new Elysia({
// })
// )
// .decorate("db", db)
// .decorate("config", config)
.decorate("config", config)
.decorate("auth", auth);
// .onStart(({ log }) => log.info("Server starting"))
// .onStop(({ log }) => log.info("Server stopping"))

@ -58,8 +58,8 @@ export const index = new Elysia()
</BaseHtml>
));
})
.get("/test2", async () => {
return renderToStream(() => <App2 />);
.get("/test2", async ({ htmlStream }) => {
return htmlStream(() => <App2 />);
});
function wait(ms: number): Promise<number> {