From ff5024e8ea39204759a589e95499e21720699c92 Mon Sep 17 00:00:00 2001 From: Luiz Ferraz Date: Tue, 5 Mar 2024 16:10:24 -0300 Subject: [PATCH] Comment getStaticPaths --- .../sitemap-ext/src/pages/blog/[...slug].astro | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/sitemap-ext/src/pages/blog/[...slug].astro b/examples/sitemap-ext/src/pages/blog/[...slug].astro index 28764fbe..63bca7de 100644 --- a/examples/sitemap-ext/src/pages/blog/[...slug].astro +++ b/examples/sitemap-ext/src/pages/blog/[...slug].astro @@ -17,13 +17,13 @@ sitemap(async ({ setSitemap }) => { export const prerender = false; -export async function getStaticPaths() { - const posts = await getCollection('blog'); - return posts.map((post) => ({ - params: { slug: post.slug }, - props: post, - })); -} +// export async function getStaticPaths() { +// const posts = await getCollection('blog'); +// return posts.map((post) => ({ +// params: { slug: post.slug }, +// props: post, +// })); +// } type Props = CollectionEntry<'blog'>; const post = Astro.props;