mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
* ✨ feat: support to show working dir
* fix style
* update docs
* update topic
* refactor to use chat config
* inject working Directory
* update i18n
* fix tests
22 lines
485 B
TypeScript
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;
|