mirror of
https://github.com/opus-tango/socialdb-sh.git
synced 2026-03-20 12:05:21 +00:00
14 lines
379 B
TypeScript
14 lines
379 B
TypeScript
import { config } from "dotenv";
|
|
import { defineConfig } from "drizzle-kit";
|
|
|
|
config({ path: ".env" });
|
|
|
|
export default defineConfig({
|
|
schema: "./src/db/schema.ts",
|
|
out: "./src/db/migrations",
|
|
dialect: "postgresql",
|
|
dbCredentials: {
|
|
url: `postgresql://${process.env.POSTGRES_USER}:${process.env.POSTGRES_PASSWORD}@localhost:5432/${process.env.POSTGRES_DB}`,
|
|
},
|
|
});
|