diff --git a/configs/app/features/growthBook.ts b/configs/app/features/growthBook.ts index af672c5ac9..651e628ca6 100644 --- a/configs/app/features/growthBook.ts +++ b/configs/app/features/growthBook.ts @@ -7,7 +7,7 @@ const clientKey = getEnvValue('NEXT_PUBLIC_GROWTH_BOOK_CLIENT_KEY'); const title = 'GrowthBook feature flagging and A/B testing'; const config: Feature<{ clientKey: string }> = (() => { - if (clientKey) { + if (clientKey && clientKey !== 'xxx') { return Object.freeze({ title, isEnabled: true, diff --git a/configs/app/ui.ts b/configs/app/ui.ts index 674580d944..5873aa85de 100644 --- a/configs/app/ui.ts +++ b/configs/app/ui.ts @@ -49,7 +49,7 @@ const highlightedRoutes = (() => { const defaultColorTheme = (() => { const envValue = getEnvValue('NEXT_PUBLIC_COLOR_THEME_DEFAULT') as ColorThemeId | undefined; - return COLOR_THEMES.find((theme) => theme.id === envValue); + return COLOR_THEMES.find((theme) => theme.id === envValue) ?? COLOR_THEMES.find((theme) => theme.id === 'dark'); })(); const UI = Object.freeze({ diff --git a/lib/hooks/useNavItems.tsx b/lib/hooks/useNavItems.tsx index 7f6ac5e01b..0d7238664a 100644 --- a/lib/hooks/useNavItems.tsx +++ b/lib/hooks/useNavItems.tsx @@ -300,10 +300,6 @@ export default function useNavItems(): ReturnType { url: 'https://hub.opengradient.ai', icon: 'apps', }, - { - text: 'Testnet V1 Explorer', - url: 'https://testnetv1.opengradient.ai', - }, ].filter(Boolean); const accountNavItems: ReturnType['accountNavItems'] = [ diff --git a/nextjs/csp/policies/app.ts b/nextjs/csp/policies/app.ts index e445281572..ae0c3ecbd0 100644 --- a/nextjs/csp/policies/app.ts +++ b/nextjs/csp/policies/app.ts @@ -115,6 +115,7 @@ export function app(): CspDev.DirectiveDescriptor { ], 'font-src': [ + KEY_WORDS.SELF, KEY_WORDS.DATA, ...MAIN_DOMAINS, ...(externalFontsDomains || []), diff --git a/nextjs/headers.js b/nextjs/headers.js index c38f294879..1d35384404 100644 --- a/nextjs/headers.js +++ b/nextjs/headers.js @@ -22,7 +22,7 @@ async function headers() { }, { key: 'Cross-Origin-Opener-Policy', - value: 'same-origin', + value: 'same-origin-allow-popups', }, { key: 'Referrer-Policy', diff --git a/pages/_document.tsx b/pages/_document.tsx index 61ee1a3284..c3ca6875e2 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -34,17 +34,19 @@ class MyDocument extends Document { { /* FONTS */ } + + { /* eslint-disable-next-line @next/next/no-sync-scripts */ }