This commit is contained in:
stjet
2024-11-12 01:24:53 +00:00
commit 75883a3e8a
27 changed files with 4321 additions and 0 deletions

10
src/lib/mongo.ts Normal file
View File

@@ -0,0 +1,10 @@
import { MongoClient } from "mongodb";
import { MONGODB_URI } from "$env/static/private";
//const MONGODB_URI = process.env["MONGODB_URI"];
const client = new MongoClient(MONGODB_URI);
export const client_promise = client.connect();