refactor: define slug as a string
This commit is contained in:
parent
90cac4102b
commit
991c333c8a
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue