IntegrationsSEO

Setup

  • Open .env and make sure that WEBSITE_URLand WEBSITE_NAME are set correctly, they will be used to generate the meta tags.
  • To see the actual configuration, you can view the filesrc/app/helpers/common/metadata.helpers.tsx.
  • To add custom SEO tags to a page without rewriting all the tags, you can do as in the example:
    // /src/app/test/page.tsx
    import React from 'react';
    import {Metadata} from "next";
    import {handleStaticMetaData} from "@/helpers/common/metadata.helpers";
    export const metadata: Metadata = handleStaticMetaData({
    title: 'This will change the meta title only in this page',
    description: 'Same for the meta-description'
    })
    const TestPage = () => {
    return (
    <section className="max-w-xl mx-auto space-y-8">
    <h1 className="text-3xl md:text-4xl font-extrabold">
    This static page has custom meta tags
    </h1>
    </section>
    );
    };
    export default TestPage;
    My suggestion is to always set the meta title and description for each page.

Dynamic Sitemap

The sitemap is dynamically generated in the /src/app/sitemap.xml file.

It automatically extracts all the blog posts and the routes from the Routes enum in/src/helpers/common/routes.ts

Make a blog out of the box

Once you configured yourdatabaseand yourauthenticationyou will be able to create blog posts from the admin panel. See theBlog Section

It automatically extracts all the blog posts and the routes from the Routes enum in/src/helpers/common/routes.ts