Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 142a003

Browse files
chore: Remove GQL playground access from prod (#936)
1 parent d984fa8 commit 142a003

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

codecov/settings_base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,11 @@
350350
)
351351
CORS_ALLOWED_ORIGINS: list[str] = []
352352

353-
GRAPHQL_PLAYGROUND = True
353+
GRAPHQL_PLAYGROUND = get_settings_module() in [
354+
SettingsModule.DEV.value,
355+
SettingsModule.STAGING.value,
356+
SettingsModule.TESTING.value,
357+
]
354358

355359
UPLOAD_THROTTLING_ENABLED = get_config(
356360
"setup", "upload_throttling_enabled", default=True

0 commit comments

Comments
 (0)