mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-10 20:05:38 +02:00
* Allow setting all variables in .env file * Fix postgres version * pin versions * bump --------- Co-authored-by: pe1uca <edga.alva@gmail.com>
19 lines
521 B
TypeScript
19 lines
521 B
TypeScript
import dotenv from "dotenv";
|
|
import { defineConfig } from "drizzle-kit";
|
|
|
|
dotenv.config();
|
|
|
|
export default defineConfig({
|
|
schema: "./src/db/postgres/schema.ts",
|
|
out: "./drizzle",
|
|
dialect: "postgresql",
|
|
dbCredentials: {
|
|
host: process.env.POSTGRES_HOST || "postgres",
|
|
port: process.env.POSTGRES_PORT || 5432,
|
|
database: process.env.POSTGRES_DB || "analytics",
|
|
user: process.env.POSTGRES_USER || "frog",
|
|
password: process.env.POSTGRES_PASSWORD || "frog",
|
|
ssl: false,
|
|
},
|
|
verbose: true,
|
|
});
|