mirror of
https://github.com/xtr-dev/payload-feature-flags.git
synced 2025-12-10 02:43:25 +00:00
Removes misleading warning that appeared during Next.js SSR: - Client components are initially rendered on server where window is undefined - This is expected behavior and doesn't require a warning - Now silently falls back to relative URLs during SSR - Properly uses window.location.origin once hydrated on client The hooks now work seamlessly in: - Pure client-side apps - Next.js with SSR/SSG - Server components (with explicit serverURL) - Client components (auto-detects after hydration) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
3.3 KiB
3.3 KiB