fix: defer homepage data fetch until request
This commit is contained in:
@@ -5,6 +5,7 @@ import { Button } from "@/components/ui/button";
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { Finger_Paint } from "next/font/google";
|
||||
import { connection } from "next/server";
|
||||
import { getFollowerCounts } from "@/lib/followers";
|
||||
import { Share2, Trophy } from "lucide-react";
|
||||
import Background from "@/public/background/space.webp";
|
||||
@@ -103,6 +104,7 @@ function LinkList({
|
||||
}
|
||||
|
||||
export default async function Home() {
|
||||
await connection();
|
||||
const { counts } = await getFollowerCounts();
|
||||
|
||||
// Use configured profile data.
|
||||
|
||||
Reference in New Issue
Block a user