refactor: define slug as a string

This commit is contained in:
Oliver Davies 2022-12-11 00:27:42 +00:00
parent 90cac4102b
commit 991c333c8a

View file

@ -11,7 +11,7 @@ export async function getStaticPaths() {
const slug = email.frontmatter.permalink
.replace('archive/', '')
.replace('\n', '')
.split('/')[3]
.split('/')[3] as string
return {
params: {