fix(ui): bundle all icons so the UI renders without internet access (#12892)

This commit is contained in:
Alejandro Bailo
2026-09-28 15:58:32 +02:00
committed by GitHub
parent 4195a4f818
commit e6320b178a
65 changed files with 524 additions and 318 deletions
+2 -5
View File
@@ -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",