[+] mongo

This commit is contained in:
2025-11-17 22:42:11 +08:00
parent 79182ddf7c
commit 6c2b8f6363
5 changed files with 47 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import { MongoClient } from "mongodb"
export const mongo = new MongoClient(process.env.MONGO_URL || "mongodb://cat:meow@localhost:27017/kashi")
mongo.connect()
export const db = mongo.db()