I have been working on my NextJS application and I've realized that all the links within it are built using the
<Link href="/my-page"><a>My page</a></Link>
component. After exporting the app to generate a static site, I noticed that the pages in the out folder have a .html extension. This poses a problem because while a link might be pointing to /my-page
, the actual page is /my-page.html
. How can I effectively handle this issue? Is there a way for NextJS to address this or do I need to manually change all my anchor tags to use /my-page.html
?
Any advice would be greatly appreciated.