mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-09 21:14:22 +00:00
feat(ui): gate Sentry, GTM and PostHog behind runtime enable flags (#11682)
Co-authored-by: Pablo F.G <pablo.fernandez@prowler.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Pablo F.G
Claude Opus 4.8
parent
838f82b255
commit
ac3f289de6
Vendored
+10
-3
@@ -15,12 +15,12 @@ declare global {
|
||||
NEXT_PUBLIC_API_DOCS_URL?: string;
|
||||
UI_API_DOCS_URL?: string;
|
||||
|
||||
// GTM
|
||||
UI_GOOGLE_TAG_MANAGER_ENABLE?: "true" | "false";
|
||||
/** @deprecated use UI_GOOGLE_TAG_MANAGER_ID */
|
||||
NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID?: string;
|
||||
UI_GOOGLE_TAG_MANAGER_ID?: string;
|
||||
|
||||
// SENTRY
|
||||
UI_SENTRY_ENABLE?: "true" | "false";
|
||||
/** @deprecated use UI_SENTRY_DSN */
|
||||
NEXT_PUBLIC_SENTRY_DSN?: string;
|
||||
UI_SENTRY_DSN?: string;
|
||||
@@ -28,6 +28,8 @@ declare global {
|
||||
NEXT_PUBLIC_SENTRY_ENVIRONMENT?: string;
|
||||
UI_SENTRY_ENVIRONMENT?: string;
|
||||
|
||||
BILLING_CLOUD_ENABLE?: "true" | "false";
|
||||
|
||||
// Build-time public config
|
||||
NEXT_PUBLIC_IS_CLOUD_ENV?: "true" | "false";
|
||||
NEXT_PUBLIC_PROWLER_RELEASE_VERSION?: string;
|
||||
@@ -44,9 +46,14 @@ declare global {
|
||||
SENTRY_PROJECT?: string;
|
||||
SENTRY_AUTH_TOKEN?: string;
|
||||
|
||||
// TODO Reserved runtime public config (registered now; no UI consumer yet)
|
||||
UI_POSTHOG_ENABLE?: "true" | "false";
|
||||
/** @deprecated use UI_POSTHOG_KEY */
|
||||
POSTHOG_KEY?: string;
|
||||
UI_POSTHOG_KEY?: string;
|
||||
/** @deprecated use UI_POSTHOG_HOST */
|
||||
POSTHOG_HOST?: string;
|
||||
UI_POSTHOG_HOST?: string;
|
||||
// TODO Reserved runtime public config (registered now; no UI consumer yet)
|
||||
REO_DEV_CLIENT_ID?: string;
|
||||
|
||||
// Social OAuth
|
||||
|
||||
Reference in New Issue
Block a user