handle case where we are trying to build on github and haven't deployed yet

This commit is contained in:
Kenneth Kehl
2024-02-26 11:48:06 -08:00
parent f245c25e59
commit f332587b37

View File

@@ -36,7 +36,7 @@ class Config(object):
NR_BROWSER_KEY = getenv("NR_BROWSER_KEY")
settings = newrelic.agent.global_settings()
NR_MONITOR_ON = settings and settings.monitor_mode
COMMIT_HASH = getenv("COMMIT_HASH")
COMMIT_HASH = getenv("COMMIT_HASH", "Unknown")
TEMPLATE_PREVIEW_API_HOST = getenv(
"TEMPLATE_PREVIEW_API_HOST", "http://localhost:9999"