You've already forked domainstack.io
mirror of
https://github.com/jakejarvis/domainstack.io.git
synced 2025-12-02 19:33:48 -05:00
23 lines
443 B
TypeScript
23 lines
443 B
TypeScript
import * as dotenv from "dotenv";
|
|
|
|
// Load common local envs first if present, then default .env
|
|
dotenv.config({ path: ".env.local" });
|
|
dotenv.config();
|
|
|
|
import { defineConfig } from "drizzle-kit";
|
|
|
|
const url = process.env.DATABASE_URL;
|
|
|
|
if (!url) {
|
|
throw new Error("DATABASE_URL is not set");
|
|
}
|
|
|
|
export default defineConfig({
|
|
schema: "./lib/db/schema.ts",
|
|
out: "./drizzle",
|
|
dialect: "postgresql",
|
|
dbCredentials: {
|
|
url,
|
|
},
|
|
});
|