Polarcraft/web/server/utils/mongodb.js

7 lines
157 B
JavaScript
Raw Normal View History

2023-04-23 17:16:53 +02:00
import { MongoClient } from "mongodb";
const uri = process.env.NUXT_DB_URL
const client = new MongoClient(uri);
export const db = client.db('polarcraft')