mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix flags validation and new stack architech design
This commit is contained in:
@@ -96,8 +96,6 @@ export async function createContext(opts: CreateExpressContextOptions) {
|
||||
}
|
||||
|
||||
{{else}}
|
||||
// Default or fallback context if backend is not recognized or none
|
||||
// This might need adjustment based on your default behavior
|
||||
export async function createContext() {
|
||||
return {
|
||||
session: null,
|
||||
|
||||
@@ -68,5 +68,5 @@ const app = new Elysia()
|
||||
{{/if}}
|
||||
.get("/", () => "OK")
|
||||
.listen(3000, () => {
|
||||
console.log(`Server is running on http://localhost:3000`);
|
||||
console.log("Server is running on http://localhost:3000");
|
||||
});
|
||||
|
||||
@@ -70,7 +70,6 @@ app.use("/trpc/*", trpcServer({
|
||||
{{/if}}
|
||||
|
||||
{{#if (includes examples "ai")}}
|
||||
// AI chat endpoint
|
||||
app.post("/ai", async (c) => {
|
||||
const body = await c.req.json();
|
||||
const messages = body.messages || [];
|
||||
|
||||
Reference in New Issue
Block a user