0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 22:22:42 +00:00

Adds routes to crawl google users for unsubbed brews

This commit is contained in:
Trevor Buckner
2025-07-28 13:28:48 -04:00
parent 990bf80b59
commit 698d60e0f2
3 changed files with 106 additions and 2 deletions

View File

@@ -8,7 +8,8 @@
import Mongoose from 'mongoose';
const getMongoDBURL = (config)=>{
return config.get('mongodb_uri') ||
console.log('mongodb uri', config.get('MONGODB_URI'));
return config.get('MONGODB_URI') ||
config.get('mongolab_uri') ||
'mongodb://127.0.0.1/homebrewery'; // changed from mongodb://localhost/homebrewery to accommodate versions 16+ of node.
};