import FundingGoal from "@/app/components/funding-goal"; import VodCard from "@/app/components/vod-card"; import { getVodTitle } from "@/app/components/vod-page"; import { getVods } from '@/app/lib/vods'; import { IVod } from "@/app/lib/vods"; import { IVtuber } from '@futureporn/types'; import { getVtubers } from "./lib/vtubers"; import VTuberCard from "./components/vtuber-card"; import Link from 'next/link'; import { notFound } from "next/navigation"; // import { getLogtoContext, signIn, signOut } from '@logto/next/server-actions'; // import SignIn from './sign-in'; // import SignOut from './sign-out'; // import { logtoConfig } from './logto'; export default async function Page() { // const { isAuthenticated, claims } = await getLogtoContext(logtoConfig); const vods = await getVods(1, 9, true); // console.log('vods as follows') // console.log(JSON.stringify(vods, null, 2)) const vtubers = await getVtubers(); // if (!vtubers) notFound(); // console.log(`vtubers as follows`) // console.log(JSON.stringify(vtubers, null, 2)) // return ( //
//
// {JSON.stringify(vods, null, 2)}
//
//
// )
return (
<>
Error: Failed to fetch VODs from the database