import Feed from "@/components/Feed"; import SearchBar from "@/components/SearchBar"; import { ApiResponse, fetchFeedData } from "@/lib/feed.ts"; import * as GraphicSection from "@/components/GraphicSection"; import { ArrowIcon } from "@/components/ArrowIcon"; import { GetServerSideProps } from "next"; import { Article } from "@/lib/prisma.ts"; type Props = { data: ApiResponse
; }; export const getServerSideProps: GetServerSideProps = async ({ req, params, }) => { if (!req.headers.referer && params?.q) { return { redirect: { destination: `/search?q=${params?.q}`, permanent: false, }, }; } const data = await fetchFeedData({}); return { props: { data } }; }; export default async function Home({ data }: Props) { return ( <>

WEB3.NEWS is a project by Lume. Let’s build an open, user-owned web together.

Learn more about Lume and join our community
); }