Skip to content

Commit b103b43

Browse files
author
Chris D. Macrae
committed
Try and fix pre-render logic
1 parent 9e3de55 commit b103b43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/articles/[path].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const getStaticPaths: GetStaticPaths = async () => {
66
const posts = await getAllPosts();
77

88
return {
9-
paths: posts.map(p => ({ params: { path: p.slug.replace('/article/', '') }})),
9+
paths: posts.map(p => ({ params: { path: p.slug.replace('/articles/', '') }})),
1010
fallback: 'blocking'
1111
}
1212
}

0 commit comments

Comments
 (0)