create-better-t-stack 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "CLI tool to scaffold Better-T Stack projects",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -5,6 +5,6 @@ export default defineConfig({
5
5
  out: "./src/db/migrations",
6
6
  dialect: "postgresql",
7
7
  dbCredentials: {
8
- url: process.env.POSTGRES_URL || "",
8
+ url: process.env.DATABASE_URL || "",
9
9
  },
10
10
  });
@@ -1,5 +1,5 @@
1
1
  import { drizzle } from "drizzle-orm/postgres-js";
2
2
  import postgres from "postgres";
3
3
 
4
- const queryClient = postgres(process.env.DATABASE_URL);
5
- const db = drizzle({ client: queryClient });
4
+ const queryClient = postgres(process.env.DATABASE_URL || "");
5
+ export const db = drizzle({ client: queryClient });
@@ -1,7 +1,7 @@
1
1
  import { betterAuth } from "better-auth";
2
2
  import { drizzleAdapter } from "better-auth/adapters/drizzle";
3
- import { db } from "../db";
4
3
  import * as schema from "../db/schema/auth";
4
+ import { db } from "../db";
5
5
 
6
6
  export const auth = betterAuth({
7
7
  database: drizzleAdapter(db, {
@@ -4,7 +4,7 @@ import prisma from "../../prisma";
4
4
 
5
5
  export const auth = betterAuth({
6
6
  database: prismaAdapter(prisma, {
7
- provider: "pg",
7
+ provider: "postgresql",
8
8
  }),
9
9
  trustedOrigins: [process.env.CORS_ORIGIN || ""],
10
10
  emailAndPassword: { enabled: true },