feat: support chinese tag name

This commit is contained in:
Jan William 2023-11-12 15:58:17 +08:00
parent 81a2bb554c
commit aa7ab3f610

View File

@ -25,7 +25,7 @@ export const generateStaticParams = async () => {
const tagCounts = tagData as Record<string, number>
const tagKeys = Object.keys(tagCounts)
const paths = tagKeys.map((tag) => ({
tag: tag,
tag: encodeURI(tag),
}))
return paths
}