1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-23 23:09:37 +02:00
AdventureLog/drizzle.config.ts

16 lines
356 B
TypeScript
Raw Normal View History

2024-04-02 22:02:20 +00:00
import type { Config } from "drizzle-kit";
import * as dotenv from "dotenv";
dotenv.config();
const { DATABASE_URL } = process.env;
if (!DATABASE_URL) {
2024-04-02 22:02:20 +00:00
throw new Error("No url");
}
export default {
2024-04-02 22:02:20 +00:00
schema: "./src/lib/db/schema.ts",
out: "./migrations",
driver: "pg",
dbCredentials: {
connectionString: DATABASE_URL,
},
} satisfies Config;