From 7e71446cc73349a87619b9c9001e1844e36486b4 Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Wed, 29 Jul 2026 17:52:47 -0400 Subject: [PATCH] feat: add MONGO_URI to environment variable setup in build workflow --- backend/db/mongo_client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/db/mongo_client.py b/backend/db/mongo_client.py index 9da651f..3111d38 100644 --- a/backend/db/mongo_client.py +++ b/backend/db/mongo_client.py @@ -22,6 +22,10 @@ _mongo_client = None def _create_mongo_client(): """Build a fail-fast MongoClient from environment variables.""" uri = os.environ.get('MONGO_URI') + #log the MONGO_URI for debugging purposes, I will change it later so it doesn't log the password + print(f"Using MONGO_URI: {uri}") + + if not uri: raise RuntimeError( 'MONGO_URI environment variable is required when USE_MONGODB=true.'