mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
www pages that use DefaultLayout are bailing out of SSR because of useSearchParams. Removing the useSearchParams opts more pages (including the pricing page) into SSR. _However_, it breaks the build because once blog pages are opted into SSR, they fail due to next-mdx-remote/codehike incompatibilities. So we also need to opt blog pages back _out_ of SSR using next/dynamic. This reproduces previous behaviour for the blog. Also had to remove suspense wrapper around everything because that was causing the content div to be streamed in a hidden later chunk <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for the Contribute section with improved state management integration. * **Performance Improvements** * Optimized blog post rendering with client-side enhancements. * Improved navigation and layout loading strategies. * **Refactor** * Simplified provider architecture for better maintainability. * Restructured internal component organization. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
8 lines
205 B
TypeScript
8 lines
205 B
TypeScript
'use client'
|
|
|
|
import { NuqsAdapter } from 'nuqs/adapters/next/app'
|
|
|
|
export default function ContributeLayout({ children }: { children: React.ReactNode }) {
|
|
return <NuqsAdapter>{children}</NuqsAdapter>
|
|
}
|