Files
lobehub/drizzle.config.ts
Arvin Xu d8deaddedd feat: add work path for local system (#11128)
*  feat: support to show working dir

* fix style

* update docs

* update topic

* refactor to use chat config

* inject working Directory

* update i18n

* fix tests
2026-01-03 16:22:22 +08:00

22 lines
485 B
TypeScript

import * as dotenv from 'dotenv';
import type { Config } from 'drizzle-kit';
// Read the .env file if it exists, or a file specified by the
// dotenv_config_path parameter that's passed to Node.js
dotenv.config();
let connectionString = process.env.DATABASE_URL!;
export default {
dbCredentials: {
url: connectionString,
},
dialect: 'postgresql',
out: './packages/database/migrations',
schema: './packages/database/src/schemas',
strict: true,
} satisfies Config;