diff --git a/examples/nextjs-conributing/src/app/[[...path]]/page.tsx b/examples/nextjs-conributing/src/app/[[...path]]/page.tsx index d8b4ac9f..ddaa5aca 100644 --- a/examples/nextjs-conributing/src/app/[[...path]]/page.tsx +++ b/examples/nextjs-conributing/src/app/[[...path]]/page.tsx @@ -29,7 +29,7 @@ export const generateMetadata = async ({ params }: { params: { path?: string[] } export const generateStaticParams = async () => { const pages = await getPages(); - return pages.map((page) => ({ path: page.split("/").slice(2) })); + return pages.map((page) => ({ path: page.split("/").slice(1) })); }; export default Docs;