更新安全配置项目

This commit is contained in:
2026-04-13 22:10:43 +08:00
parent 8e245076fe
commit 70d3020035
8 changed files with 43 additions and 284 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
import mysql from "mysql2/promise";
import {getConfig} from "@/lib/config";
import {getDBConfig} from "@/lib/config";
// 获取配置文件中的数据链接
const dataBaseConfig = getConfig().db
// 获取配置文件中的数据
const dataBaseConfig = getDBConfig()
const pool = mysql.createPool({
host: dataBaseConfig.host || "127.0.0.1",