mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 21:05:06 +03:00
* show cms blog posts in www * remove contentlayer from www * outputFileTracingExcludes * update remotePatterns * fetch cms posts server-side with revalidation * add cms env vars to turbo.json * add www env vars to turbo.json * include cms posts in www sitemap * add migration to remove image from cms post * update cms meta image mapping in www
16 lines
414 B
TypeScript
16 lines
414 B
TypeScript
'use client'
|
|
|
|
import { usePathname } from 'next/navigation'
|
|
|
|
const useDarkLaunchWeeks = () => {
|
|
const pathname = usePathname()
|
|
|
|
const isLaunchWeek7 = pathname?.startsWith('/launch-week/7')
|
|
const isLaunchWeek8 = pathname?.startsWith('/launch-week/8')
|
|
const isLaunchWeekX = pathname?.startsWith('/launch-week/x')
|
|
|
|
return isLaunchWeek7 || isLaunchWeek8 || isLaunchWeekX
|
|
}
|
|
|
|
export default useDarkLaunchWeeks
|