fix: add dotenv loading to migration script for production auth

This commit is contained in:
TheFlow 2025-10-12 20:00:32 +13:00
parent 4d086831c1
commit 0b5d5cd3dd

View file

@ -7,6 +7,7 @@
* configured to display in the docs.html sidebar.
*/
require('dotenv').config();
const { MongoClient } = require('mongodb');
const MONGO_URI = process.env.MONGO_URI || 'mongodb://localhost:27017';