preciazo/db-datos/drizzle.config.ts

14 lines
287 B
TypeScript
Raw Normal View History

2023-12-23 23:29:55 +00:00
import type { Config } from "drizzle-kit";
2023-12-26 02:05:50 +00:00
if (!process.env.DB_PATH) throw new Error("no hay DB_PATH");
export const DB_PATH = process.env.DB_PATH;
2023-12-23 23:29:55 +00:00
export default {
schema: "./schema.ts",
out: "./drizzle",
dbCredentials: {
2023-12-26 02:05:50 +00:00
url: process.env.DB_PATH,
2023-12-23 23:29:55 +00:00
},
} satisfies Config;