From d9fb01ba32d8e48c9dfccc2bfc9f213c13bf06c1 Mon Sep 17 00:00:00 2001 From: Calvin Yau Date: Tue, 29 Oct 2024 11:09:01 -0700 Subject: [PATCH] chore: Remove GQL playground access from prod --- codecov/settings_base.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/codecov/settings_base.py b/codecov/settings_base.py index b0dce53faa..324a317021 100644 --- a/codecov/settings_base.py +++ b/codecov/settings_base.py @@ -350,7 +350,11 @@ ) CORS_ALLOWED_ORIGINS: list[str] = [] -GRAPHQL_PLAYGROUND = True +GRAPHQL_PLAYGROUND = get_settings_module() in [ + SettingsModule.DEV.value, + SettingsModule.STAGING.value, + SettingsModule.TESTING.value, +] UPLOAD_THROTTLING_ENABLED = get_config( "setup", "upload_throttling_enabled", default=True