We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dde0ac commit 9f21976Copy full SHA for 9f21976
app/tags/[tag]/page.tsx
@@ -25,7 +25,7 @@ export const generateStaticParams = async () => {
25
const tagCounts = tagData as Record<string, number>
26
const tagKeys = Object.keys(tagCounts)
27
const paths = tagKeys.map((tag) => ({
28
- tag: encodeURI(tag),
+ tag: process.env.NODE_ENV === 'production' ? tag : encodeURI(tag),
29
}))
30
return paths
31
}
0 commit comments