Skip to content

Commit

Permalink
fix(www): fixes bug when not pre-rendering blog pages
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed Jan 22, 2025
1 parent ba0c748 commit cb148bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/app/blog/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function generateStaticParams() {
const collection = await BlogCollection.getSources();

return collection.map((entry) => ({
slug: entry.getPath().split('/').slice(1),
slug: entry.getPath().split('/').slice(2),
}));
}

Expand Down

0 comments on commit cb148bd

Please sign in to comment.