Skip to content

Commit

Permalink
Fix: Don't need to encode tags when production
Browse files Browse the repository at this point in the history
  • Loading branch information
leonliu06 committed Mar 4, 2024
1 parent abfa4b6 commit e6bfe51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/tags/[tag]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: encodeURI(tag),
tag: process.env.NODE_ENV === 'production' ? tag : encodeURI(tag),
}))
return paths
}
Expand Down

0 comments on commit e6bfe51

Please sign in to comment.