mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
✨ 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
This commit is contained in:
+1
-9
@@ -7,15 +7,7 @@ import type { Config } from 'drizzle-kit';
|
||||
|
||||
dotenv.config();
|
||||
|
||||
let connectionString = process.env.DATABASE_URL;
|
||||
|
||||
if (process.env.NODE_ENV === 'test') {
|
||||
console.log('current ENV:', process.env.NODE_ENV);
|
||||
connectionString = process.env.DATABASE_TEST_URL;
|
||||
}
|
||||
|
||||
if (!connectionString)
|
||||
throw new Error('`DATABASE_URL` or `DATABASE_TEST_URL` not found in environment');
|
||||
let connectionString = process.env.DATABASE_URL!;
|
||||
|
||||
export default {
|
||||
dbCredentials: {
|
||||
|
||||
Reference in New Issue
Block a user