更新安全配置项目
This commit is contained in:
+3
-3
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user