fix: dynamic import CommunityFeed in HomepageLanding
- Use Next.js dynamic() to import CommunityFeed as Server Component - Fixes Module not found: Can't resolve 'fs' error - Client Component can now safely import Server Component 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
parent
ec67982d13
commit
6d16ed0289
@ -1,15 +1,19 @@
|
||||
'use client'
|
||||
|
||||
import clsx from 'clsx'
|
||||
import dynamic from 'next/dynamic'
|
||||
|
||||
import Features from '@components/Features'
|
||||
import OpenSource from '@components/OpenSource'
|
||||
import DownloadSection from '@components/DownloadSection'
|
||||
import CommunityFeed from '@components/home/CommunityFeed'
|
||||
import { designTokens } from '@theme/designTokens'
|
||||
|
||||
import { useLanguage } from '../../i18n/LanguageProvider'
|
||||
|
||||
const CommunityFeed = dynamic(() => import('@components/home/CommunityFeed'), {
|
||||
ssr: true,
|
||||
})
|
||||
|
||||
const heroContent = {
|
||||
zh: {
|
||||
eyebrow: 'Cloud-Neutral',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user