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
|
const slug = email.frontmatter.permalink
|
||||||
.replace('archive/', '')
|
.replace('archive/', '')
|
||||||
.replace('\n', '')
|
.replace('\n', '')
|
||||||
.split('/')[3]
|
.split('/')[3] as string
|
||||||
|
|
||||||
return {
|
return {
|
||||||
params: {
|
params: {
|
||||||
|
|
Loading…
Reference in a new issue