From b34def5f326fb9ace9bf2df8af6837ecccfc5524 Mon Sep 17 00:00:00 2001 From: CancerAi Date: Sun, 11 Oct 2026 22:06:25 +0800 Subject: [PATCH] =?UTF-8?q?change:=20=E6=95=B0=E6=8D=AE=E5=BA=93=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E4=BF=A1=E6=81=AF=E4=BD=BF=E7=94=A8=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index dc58183..aeb2a5a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 })