timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
7.43k stars 1.87k forks source link

Fix: Don't need to encode tags when production #866

Open leonliu06 opened 4 months ago

leonliu06 commented 4 months ago

The tags with Chinese character would be double encoded when deploy in the way of static export. Then the server wold not find the correct route.

vercel[bot] commented 4 months ago

Someone is attempting to deploy a commit to a Personal Account owned by @timlrx on Vercel.

@timlrx first needs to authorize it.

timlrx commented 3 months ago

Hmm I just noticed that there were some people who posted about this issue in https://github.com/timlrx/tailwind-nextjs-starter-blog/pull/771 as well. What's the reason that encodeURI is needed in dev but not prod? And could you just if it works on a normal yarn build and yarn serve as well?

Would like to fix this issue properly.