diff --git a/app/tags/[tag]/page.tsx b/app/tags/[tag]/page.tsx index d2cab3f965..4e491b5290 100644 --- a/app/tags/[tag]/page.tsx +++ b/app/tags/[tag]/page.tsx @@ -25,7 +25,7 @@ export const generateStaticParams = async () => { const tagCounts = tagData as Record const tagKeys = Object.keys(tagCounts) const paths = tagKeys.map((tag) => ({ - tag: encodeURI(tag), + tag: process.env.NODE_ENV === 'production' ? tag : encodeURI(tag), })) return paths }