diff --git a/apps/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx b/apps/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx index c7b24a8d3b2..2b0824e92df 100644 --- a/apps/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx +++ b/apps/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx @@ -4,6 +4,7 @@ import Link from 'next/link' import { PropsWithChildren, useEffect, useState } from 'react' import { cn } from 'ui' +import { useCustomContent } from '@/hooks/custom-content/useCustomContent' import { BASE_PATH } from '@/lib/constants' type ForgotPasswordLayoutProps = { @@ -23,6 +24,8 @@ export const ForgotPasswordLayout = ({ children, }: PropsWithChildren) => { const { resolvedTheme } = useTheme() + const { dashboardAuthLogoLinkUrl } = useCustomContent(['dashboard_auth:logo_link_url']) + const marketingSiteUrl = dashboardAuthLogoLinkUrl ?? 'https://supabase.com' // Addresses hydration issue with `resolvedTheme` as its undefined during SSR and the first (hydrating) client render const [mounted, setMounted] = useState(false) @@ -39,7 +42,7 @@ export const ForgotPasswordLayout = ({