From 515dba02d32ddca2af0eaaa0e5a1497206229114 Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Thu, 9 Nov 2023 18:20:03 +0530 Subject: [PATCH] chore: configuration add tracker variables (#2709) * chore: configuration add tracker variables * dev: unsplash configuration --- apiserver/plane/api/views/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apiserver/plane/api/views/config.py b/apiserver/plane/api/views/config.py index a06a7f7fc..d035c4740 100644 --- a/apiserver/plane/api/views/config.py +++ b/apiserver/plane/api/views/config.py @@ -31,4 +31,7 @@ class ConfigurationEndpoint(BaseAPIView): os.environ.get("ENABLE_EMAIL_PASSWORD", "0") == "1" ) data["slack_client_id"] = os.environ.get("SLACK_CLIENT_ID", None) + data["posthog_api_key"] = os.environ.get("POSTHOG_API_KEY", None) + data["posthog_host"] = os.environ.get("POSTHOG_HOST", None) + data["has_unsplash_configured"] = bool(settings.UNSPLASH_ACCESS_KEY) return Response(data, status=status.HTTP_200_OK)