17 lines
373 B
TypeScript
17 lines
373 B
TypeScript
import { defineConfig } from "drizzle-kit";
|
|
|
|
const databaseUrl = process.env.DATABASE_URL;
|
|
if (!databaseUrl) {
|
|
throw new Error("DATABASE_URL is not set — required by drizzle-kit");
|
|
}
|
|
|
|
export default defineConfig({
|
|
schema: "./server/schema.ts",
|
|
out: "./drizzle",
|
|
dialect: "mysql",
|
|
dbCredentials: {
|
|
url: databaseUrl,
|
|
},
|
|
verbose: true,
|
|
strict: true,
|
|
});
|