Skip to content

Commit

Permalink
update blog page
Browse files Browse the repository at this point in the history
  • Loading branch information
seanjermey committed Oct 13, 2023
1 parent 9019e24 commit 949813e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/blog/[url_slug]/index.page.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Content } from "@/ui";
import { generateArticle } from "@/faker/generateArticle";
import { generateArrayOf } from "@/faker/generateArrayOf";
import { getRoute } from "@/getters/getRoute";
import * as additionalComponents from "./__components";
import { blogHelper } from "@/helpers/blogHelper";
Expand Down Expand Up @@ -37,5 +35,8 @@ export async function getStaticProps({ params: { url_slug } }) {
}

export async function getStaticPaths() {
return { paths: [], fallback: false };
return {
paths: blogHelper.toPaths(),
fallback: false,
};
}

0 comments on commit 949813e

Please sign in to comment.