mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 11:36:38 +08:00
key替换
This commit is contained in:
parent
f2112e6fe1
commit
f7c0c56005
@ -55,9 +55,8 @@ export async function POST(req: NextRequest) {
|
|||||||
const atlasAPI = new Atlas({
|
const atlasAPI = new Atlas({
|
||||||
dataSource: "Cluster0",
|
dataSource: "Cluster0",
|
||||||
database: "chat_db",
|
database: "chat_db",
|
||||||
apiKey:
|
apiKey: process.env.MONGODB_KEY + "",
|
||||||
"8uOObGDRUqxdzfFzk91CHMq1UcUbqwQvnE6XjPQZe2Nv1xEXRBUi3vakKBWg7nbH",
|
apiUrl: process.env.MONGODB_URI + "",
|
||||||
apiUrl: "https://data.mongodb-api.com/app/data-ffyyc/endpoint/data/v1",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
let userRes = await atlasAPI.findOne({
|
let userRes = await atlasAPI.findOne({
|
||||||
|
Loading…
Reference in New Issue
Block a user