The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
import { usePathname } from 'next/navigation'
export function useHideSidebar() {
const pathname = usePathname() ?? ''
const shouldHide =
pathname.startsWith('/account') ||
pathname.startsWith('/new') ||
pathname.startsWith('/support') ||
pathname === '/organizations' ||
pathname === '/sign-in'
return shouldHide
}