this repo has no description www.baileykane.co/
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Create placeholder blog page

BK610 a81cc11b b0e7ea9a

+16
+16
app/blog/page.tsx
··· 1 + import BlogPage from "@/components/pageContent/BlogPage"; 2 + import { importCSVDataAsJson } from "@/lib/sheetsConnector"; 3 + 4 + export default async function Page(): Promise<React.ReactElement> { 5 + const blogPosts = await getBlogPosts(); 6 + 7 + return <BlogPage blogPosts={blogPosts} />; 8 + } 9 + 10 + async function getBlogPosts(): Promise<Array<Object>> { 11 + const blogPosts = await importCSVDataAsJson( 12 + process.env.NEXT_PUBLIC_LIBRARY_CARDS_DATA_URL || "undefined" 13 + ); 14 + 15 + return blogPosts.data; 16 + }