mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-09 21:14:22 +00:00
fix(ui): bundle all icons so the UI renders without internet access (#12892)
This commit is contained in:
+2
-5
@@ -14,7 +14,7 @@ import {
|
||||
} from "@/lib/integrations/slack-connect-status";
|
||||
import { REGISTRY_ACCESS } from "@/lib/registry/access";
|
||||
import { evaluateRegistryAccess } from "@/lib/registry/access.server";
|
||||
import { getRegistryPresentation } from "@/lib/registry/presentation";
|
||||
import { readRegistryPresentation } from "@/lib/registry/presentation";
|
||||
import { readEnv } from "@/lib/runtime-env";
|
||||
import { isCloud } from "@/lib/shared/env";
|
||||
import { copyAttributionParams } from "@/lib/utm";
|
||||
@@ -38,10 +38,7 @@ const withSecurityHeaders = (response: NextResponse): NextResponse => {
|
||||
"Content-Security-Policy",
|
||||
getCspHeader({
|
||||
cloudEnabled: isCloud(),
|
||||
registryImageOrigins: getRegistryPresentation(
|
||||
readEnv("UI_REGISTRY_URL"),
|
||||
readEnv("UI_REGISTRY_MEDIA_URL"),
|
||||
).imageOrigins,
|
||||
registryImageOrigins: readRegistryPresentation().imageOrigins,
|
||||
posthogEnabled: isGatedIntegrationEnabled(GATED_INTEGRATIONS.posthog),
|
||||
posthogKey: readGatedEnv(
|
||||
"UI_POSTHOG_ENABLED",
|
||||
|
||||
Reference in New Issue
Block a user