-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrizzle.config.ts
More file actions
38 lines (31 loc) · 966 Bytes
/
drizzle.config.ts
File metadata and controls
38 lines (31 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// import type { Config } from "drizzle-kit";
// import { defineConfig } from "drizzle-kit"
// import * as dotenv from "dotenv";
// dotenv.config({ path: ".env" });
// export default {
// driver: 'postgressql',
// schema: './src/lib/db/schema.ts',
// dbCredentials: {
// connectionString: process.env.DATABASE_URL,
// }
// } satisfies Config
import { defineConfig } from "drizzle-kit";
import * as dotenv from "dotenv";
dotenv.config();
/* const databaseUrl = process.env.DATABASE_URL;
if (!databaseUrl) {
throw new Error("DATABASE_URL is not defined in the environment variables");
} */
export default defineConfig({
dialect: "postgresql",
schema: "./src/lib/db/schema.ts",
out: "./drizzle",
dbCredentials: {
host: 'vultr-prod-c3f1adc5-26f5-4b7a-8f0f-a8c1443838a7-vultr-prod-fdc0.vultrdb.com',
database: 'defaultdb',
user: 'vultradmin',
password: 'AVNS_kmViubNaac7r3rT0yMU',
port: 16751,
ssl: 'require',
},
});