change: 数据库连接信息使用本地环境变量

This commit is contained in:
cancerai committed 2026-10-11 22:06:25 +08:00
1 parent b43c31a12b
commit b34def5f32
1 file changed
+4 -4
+4 -4
View File
@@ -9,10 +9,10 @@ const appTmp = new Hono()
const app = appTmp.basePath("/auth")
const db = new SQL({
"adapter": "mariadb",
"host": "localhost",
"user": "root",
"password": "root",
"database": "user_auth",
"host": Bun.env.DB_HOST ?? "localhost",
"user": Bun.env.DB_USER_NAME ?? "root",
"password": Bun.env.DB_USER_PASSWD ?? "root",
"database": Bun.env.DB_NAME ?? "user_auth",
"allowPublicKeyRetrieval": true
})