add: 新增端口环境变量

This commit is contained in:
cancerai committed 2026-10-12 11:47:13 +08:00
1 parent d6b753e405
commit 49567a2469
3 files changed
+4

No files matched your search

+2
View File
@@ -32,3 +32,5 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
# Finder (MacOS) folder config
.DS_Store
build/
+1
View File
@@ -8,6 +8,7 @@
# Project env
# DB_HOST
# DB_PORT
# DB_USER_NAME
# DB_USER_PASSWD
# DB_NAME
+1
View File
@@ -12,6 +12,7 @@ const app = appTmp.basePath("/auth")
const db = new SQL({
"adapter": "mariadb",
"host": Bun.env.DB_HOST ?? "localhost",
"port": Bun.env.DB_PORT ?? "3306",
"user": Bun.env.DB_USER_NAME ?? "root",
"password": Bun.env.DB_USER_PASSWD ?? "root",
"database": Bun.env.DB_NAME ?? "user_auth",