Due to historical reasons, there is a need to maintain a blog link structure that resembles /blog?article=id-of-article
. However, the goal is to implement pre-rendering with NextJS and have the blog URL appear as /blog/id-of-article
.
What is the most effective approach to accommodate this scenario? One option is to set up a permanent redirect or ensure that both URLs lead to the same page. As a newcomer to NextJS, I am uncertain about the best course of action.
Any advice or guidance on how to proceed would be greatly appreciated!