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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user