Fix database connection and export in drizzle template

This commit is contained in:
Aman Varshney
2025-03-25 00:08:53 +05:30
parent 092110c267
commit 2bfbcf647f
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"create-better-t-stack": patch
---
fix several db conf issues

View File

@@ -1,11 +1,11 @@
import { betterAuth } from "better-auth";
import { drizzleAdapter } from "better-auth/adapters/drizzle";
import { db } from "../db";
import * as schema from "../db/schema/auth";
import { db } from "../db";
export const auth = betterAuth({
database: drizzleAdapter(db, {
provider: "postgresql",
provider: "pg",
schema: schema,
}),
trustedOrigins: [process.env.CORS_ORIGIN || ""],