New versions of NextJS (14+) can now automatically create dynamic sitemaps that also supports revalidation. The sitemap will get updated at regular intervals as exported through revalidate variable.
A custom MUI theme can be implemented in the root layout script of the NextJS app. If you are using server side rendering for layout, you will need to include MUI theming as a client side component.
Google Analytics can be integrated in a NextJS app by including the Google Analytics script in the root layout.js script and configure Google Analytics indicating a single page application.