remove turbopack option and fix type issues

This commit is contained in:
2025-05-31 22:21:52 -04:00
parent f477ba21ea
commit 2ea4bab316
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -46,8 +46,8 @@ function Markdown({ content }: any) {
</ReactMarkdown>
}
export default async function Note({params}: {params: { note: string}}) {
const note = params.note
export default async function Note({params}: {params: Promise<{note: string}>}) {
const note = (await params).note
const n = await getNotes(note)
return (<>
<span className={style['last-updated']}>
@@ -63,4 +63,4 @@ export default async function Note({params}: {params: { note: string}}) {
async function getNotes(name: string) {
const notesInfo: Notes = NotesInfo;
return {...notesInfo[name], content: await readMarkdown('notes', name, true)}
}
}