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:
Arvin Xu
2026-01-03 16:22:22 +08:00
committed by GitHub
parent 7f3226d625
commit d8deaddedd
68 changed files with 1504 additions and 43 deletions
+1 -9
View File
@@ -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: {