def project_overrides(request: Request) -> HttpResponse:
    """
    Build and return the dictionary of front-end relevant environment variables for configuration.
    It gets loaded as a script tag in the head of the browser when the frontend application starts up.
    """
    config_mapping_dict = {
        "amplitude": "AMPLITUDE_API_KEY",
        "api": "API_URL",
        "assetURL": "ASSET_URL",
        "cookieAuthEnabled": "COOKIE_AUTH_ENABLED",
        "cookieSameSite": "COOKIE_SAME_SITE",
        "crispChat": "CRISP_CHAT_API_KEY",
        "disableAnalytics": "DISABLE_ANALYTICS_FEATURES",
        "flagsmith": "FLAGSMITH_ON_FLAGSMITH_API_KEY",
        "flagsmithAnalytics": "FLAGSMITH_ANALYTICS",
        "flagsmithClientAPI": "FLAGSMITH_ON_FLAGSMITH_API_URL",
        "flagsmithRealtime": "ENABLE_FLAGSMITH_REALTIME",
        "fpr": "FIRST_PROMOTER_ID",
        "ga": "GOOGLE_ANALYTICS_API_KEY",
        "githubAppURL": "GITHUB_APP_URL",
        "headway": "HEADWAY_API_KEY",
        "hideInviteLinks": "DISABLE_INVITE_LINKS",
        "linkedinPartnerTracking": "LINKEDIN_PARTNER_TRACKING",
        "maintenance": "MAINTENANCE_MODE",
        "mixpanel": "MIXPANEL_API_KEY",
        "preventEmailPassword": "PREVENT_EMAIL_PASSWORD",
        "preventSignup": "PREVENT_SIGNUP",
        "reo": "REO_API_KEY",
        "sentry": "SENTRY_API_KEY",
        "useSecureCookies": "USE_SECURE_COOKIES",
    }

    override_data = {
        key: getattr(settings, value)
        for key, value in config_mapping_dict.items()
        if getattr(settings, value, None) is not None
    }

    return HttpResponse(
        content="window.projectOverrides = " + json.dumps(override_data),
        content_type="application/javascript",
    )

    Build and return the dictionary of front-end relevant environment variables for configuration.
    It gets loaded as a script tag in the head of the browser when the frontend application starts up.
    
api/app/views.py