mirror of https://github.com/buster-so/buster.git
19 lines
394 B
TypeScript
19 lines
394 B
TypeScript
import { defineConfig } from 'drizzle-kit';
|
|||
|
|||
const connectionString = process.env.DATABASE_URL;
|
|||
|
|||
if (!connectionString) {
|
|||
throw new Error('DATABASE_URL environment variable is not defined');
|
|||
}
|
|||
|
|||
export default defineConfig({
|
|||
schema: './src/schema.ts',
|
|||
out: './drizzle',
|
|||
dialect: 'postgresql',
|
|||
dbCredentials: {
|
|||
url: connectionString || '',
|
|||
},
|
|||
verbose: true,
|
|||
strict: true,
|
|||
});
|