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 })