Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Merge branch 'master' into fs/docs-homepage

Francesco Sansalvadore8f30ac35b405
diff --cc apps/docs/layouts/SiteLayout.tsx
index cce3822a1f0,ec0f9952786..5f49ed6ae77
--- a/apps/docs/layouts/SiteLayout.tsx
+++ b/apps/docs/layouts/SiteLayout.tsx
@@@ -4,11 -4,10 +4,11 @@@ import Link from 'next/link
import NavigationMenu from '~/components/Navigation/NavigationMenu/NavigationMenu'
import TopNavBarRef from '~/components/Navigation/NavigationMenu/TopNavBarRef'
- import { memo } from 'react'
+ import Head from 'next/head'
+ import { PropsWithChildren, memo } from 'react'
import Footer from '~/components/Navigation/Footer'
import { menuState, useMenuLevelId, useMenuMobileOpen } from '~/hooks/useMenuState'
- import Head from 'next/head'
+import { useRouter } from 'next/router'
const levelsData = {
home: {
@@@ -318,10 -311,7 +312,10 @@@ const NavContainer = memo(function NavC
)
})
- const SiteLayout = ({ children }) => {
+ const SiteLayout = ({ children }: PropsWithChildren<{}>) => {
+ const router = useRouter()
+ const isHomepage = router.asPath === '/'
-
++
return (
<>
<Head>