Drizzle Config File in Drizzle ORM

From the Drizzle ORM cheat sheet · Database Setup · verified Jul 2026

Drizzle Config File

Configure drizzle-kit for migrations and studio.

typescript
// drizzle.config.ts
import { defineConfig } from 'drizzle-kit';

export default defineConfig({
  dialect: 'postgresql',
  schema: './src/db/schema.ts',
  out: './drizzle',
  dbCredentials: {
    url: process.env.DATABASE_URL!,
  },
});
💡 Install: npm i -D drizzle-kit
⚡ Use defineConfig() for type-safe configuration
📌 Set dialect to match your database engine
🟢 tablesFilter helps with multi-tenant schemas
configdrizzle-kitsetup

More Drizzle ORM tasks

Back to the full Drizzle ORM cheat sheet