diff --git a/apps/web/outstatic/content/docs/fetching-data.md b/apps/web/outstatic/content/docs/fetching-data.md index 1a7f5d64..22650aab 100644 --- a/apps/web/outstatic/content/docs/fetching-data.md +++ b/apps/web/outstatic/content/docs/fetching-data.md @@ -32,7 +32,7 @@ import { getDocuments } from 'outstatic/server' export default async function Index() { const posts = await getData() - return posts.map((post) =>

{post.title}

{post.title}

) } async function getData() { @@ -51,7 +51,7 @@ async function getData() { import { getDocuments } from 'outstatic/server' export default function Index({ posts }) { - return posts.map((post) =>

{post.title}

{post.title}

) } export const getStaticProps = async () => {