1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-28 16:55:50 -04:00

add typings to pages/api/hits.ts

This commit is contained in:
2022-02-10 19:56:26 -05:00
parent d598f5023f
commit 3f08782cab
6 changed files with 152 additions and 141 deletions

View File

@@ -32,7 +32,8 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
];
// push notes separately and use their metadata
getAllNotes().map((note) =>
const notes = getAllNotes();
notes.map((note) =>
pages.push({
relUrl: `/notes/${note.slug}/`,
// pull lastMod from front matter date