logo

NextJS

NextJS

Sitemap Supporting Revalidation in NextJS (App Router)

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.
21 July 2024
NextJS

Implement MUI Theming in NextJS App Router

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.
21 July 2024
NextJS

Integrate Google Analytics in NextJS

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.
15 July 2024
NextJS

NextJS Conditional Root Layout for Authenticated Applications (App Router)

When NextJS app has some pages meant for authenticated users and some pages for non-authenticated users, we need a conditional root layout.
15 July 2024