Skip to content

Commit 8320a08

Browse files
author
zhaoshiwei1
committed
fix: enable server-side rendering for BackgroundImage component in post-list to improve performance and SEO
1 parent d233316 commit 8320a08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/posts/post-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const BackgroundImage = dynamic(
3535
),
3636
{
3737
loading: () => <div className="w-full h-full bg-gray-200 animate-pulse" />,
38-
ssr: false,
38+
ssr: true, // 改为 true 以支持服务端渲染
3939
}
4040
);
4141

0 commit comments

Comments
 (0)