1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-14 23:00:49 -05:00

refactor note processing functions

This commit is contained in:
2025-03-28 09:22:04 -04:00
parent 2d42a7447e
commit 264fd92379
7 changed files with 96 additions and 69 deletions

View File

@@ -7,7 +7,7 @@ import Time from "../../../components/Time";
import Comments from "../../../components/Comments";
import Loading from "../../../components/Loading";
import HitCounter from "./counter";
import { getPostSlugs, getFrontMatter } from "../../../lib/helpers/posts";
import { getSlugs, getFrontMatter } from "../../../lib/helpers/posts";
import { addMetadata } from "../../../lib/helpers/metadata";
import * as config from "../../../lib/config";
import { BASE_URL } from "../../../lib/config/constants";
@@ -24,7 +24,7 @@ export const dynamicParams = false;
export const experimental_ppr = true;
export const generateStaticParams = async () => {
const slugs = await getPostSlugs();
const slugs = await getSlugs();
// map slugs into a static paths object required by next.js
return slugs.map((slug) => ({