Update identifier.
This commit is contained in:
parent
c4959e822e
commit
2e098f7585
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ interface Props {
|
|||
export async function getStaticPaths() {
|
||||
const notes = await getCollection('notes');
|
||||
return notes.map((note: CollectionEntry<'notes'>) => ({
|
||||
params: { id: note.id },
|
||||
params: { id: note.id.replace(/-/, '/') },
|
||||
props: { note },
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue