drizzle setup

This commit is contained in:
2025-08-18 17:06:11 -04:00
parent e4aa1cecf0
commit 10b7397dea
3 changed files with 34 additions and 0 deletions

17
drizzle.config.ts Normal file
View File

@@ -0,0 +1,17 @@
"use server";
import { config } from "dotenv";
import { type Config } from "drizzle-kit";
config({ path: ".env" });
export default {
out: "./drizzle",
schema: "./src/db/schema.ts",
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL!,
},
verbose: true,
strict: true,
} satisfies Config;