17 lines
333 B
TypeScript
17 lines
333 B
TypeScript
const databaseUrl = process.env.DATABASE_URL?.trim();
|
|
|
|
if (!databaseUrl) {
|
|
throw new Error('DATABASE_URL is required to run Drizzle migrations.');
|
|
}
|
|
|
|
export default {
|
|
schema: './lib/server/db/schema.ts',
|
|
out: './drizzle',
|
|
dialect: 'postgresql',
|
|
dbCredentials: {
|
|
url: databaseUrl
|
|
},
|
|
strict: true,
|
|
verbose: true
|
|
};
|