Next.js ships with these two incredibly useful utility components. You can further abstract these to clean up your code.
Building an XML sitemap in Next.js is a bit of an odd process. Here’s how I’ve done it by leveraging getStaticPaths methods from page components.
Build a JSON page component with Next.js.
Learn how to generate an XML page with Next.js.
Add a component that dynamically swaps between next/link and a native anchor tag, and decides how to write the target attribute, all based on the href property.
Running React in strict mode with Next.js can lead to useEffect callbacks with zero dependencies to run twice in development. Here’s a way around that.
Component state doesn't change when navigating between dynamic routes in Next.js that use the same component. useEffect can help.
Two methods for generating JSON pages with Next.js. One that updates on every request, the other on every build.
How to find the previous page a user visited before landing on the current page.