mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
d8deaddedd
* ✨ 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;
|