mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-28 20:55:47 -04:00
fs -> fs/promises -> asyncify all note parsing
This commit is contained in:
@@ -32,7 +32,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
||||
];
|
||||
|
||||
// push notes separately and use their metadata
|
||||
const notes = getAllNotes();
|
||||
const notes = await getAllNotes();
|
||||
notes.map((note) =>
|
||||
pages.push({
|
||||
loc: urlJoin("/notes/", note.slug, "/"),
|
||||
|
||||
Reference in New Issue
Block a user