From 5922d7be68e8927d6dcbf09c6c380defc59fbc55 Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Thu, 19 Dec 2024 22:41:54 +0300 Subject: [PATCH] fix(web): Add react_config context on auth pages Follow up to #81654 and should fix getsentry/self-hosted#3473 --- src/sentry/web/frontend/auth_login.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sentry/web/frontend/auth_login.py b/src/sentry/web/frontend/auth_login.py index 4fb8f4eb2fdbde..302f1e7d69ff3a 100644 --- a/src/sentry/web/frontend/auth_login.py +++ b/src/sentry/web/frontend/auth_login.py @@ -40,6 +40,7 @@ from sentry.utils.http import absolute_uri from sentry.utils.sdk import capture_exception from sentry.utils.urls import add_params_to_url +from sentry.web.client_config import get_client_config from sentry.web.forms.accounts import AuthenticationForm, RegistrationForm from sentry.web.frontend.base import BaseView, control_silo_view @@ -531,6 +532,7 @@ def get_default_context(self, request: Request, **kwargs) -> dict: ), # NOTE: not utilized in basic login page (only org login) "register_form": None, "CAN_REGISTER": False, + "react_config": get_client_config(request, self.active_organization), "join_request_link": self.get_join_request_link( organization=organization, request=request ), # NOTE: not utilized in basic login page (only org login)