chore: add drizzle.config.ts
This commit is contained in:
parent
8493a00aa4
commit
80b212e933
1 changed files with 14 additions and 0 deletions
14
drizzle.config.ts
Normal file
14
drizzle.config.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { defineConfig } from "drizzle-kit";
|
||||
|
||||
if (!process.env.DATABASE_URL) {
|
||||
throw new Error("DATABASE_URL environment variable is required");
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
out: "./migrations",
|
||||
schema: "./shared/schema.ts",
|
||||
dialect: "postgresql",
|
||||
dbCredentials: {
|
||||
url: process.env.DATABASE_URL,
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue