SEO Tags
βοΈ Setup¶
1οΈβ£ Open the config.js
file and add the following values:
appName
, appDescription
, and domainName
.
π§ These values will be used as default SEO meta tags.
2οΈβ£ The helper /libs/seo.js
is used to add all essential SEO tags (with default values) to all pages via the main layout file /app/layout.js
.
3οΈβ£ To add custom SEO tags to a specific page without rewriting everything, do the following:
π /app/terms/page.js
import { getSEOTags } from "@/libs/seo";
...
export const metadata = getSEOTags({
title: "Terms and Conditions | SaaSFast",
canonicalUrlRelative: "/tos",
});
export default async function TermsAndConditions() {
...
β
Itβs recommended to always define title
and canonicalUrlRelative
for each page.
π§© When needed, add structured data to the page using the renderSchemaTags()
function in /libs/seo.js
.
π This helps Google better understand your site and may enable rich results.
π Open the component for more details.
π Example:
/app/page.js
import { renderSchemaTags } from "@/libs/seo";
export default function Page() {
return (
<>
{renderSchemaTags()}
<main className="flex min-h-screen flex-col items-center justify-center text-center gap-12 p-8">
<h1 className="text-3xl font-extrabold"> SaaSFast</h1>
...
</main>
</>
);
}
4οΈβ£ Add your root URL to siteUrl
(e.g., https://yourdomain.com
) inside the
next-sitemap.config.js
file in the root folder.
πΊοΈ This will generate sitemap.xml
and robots.txt
files for all your pages during build.
5οΈβ£ Verify your domain in Google Search Console to help with site indexing.
π Create a Blog in Minutes¶
π Inside the folder /app/blog/_assets
, youβll find the content.js
file which contains all your blog posts, authors, categories, and blog style.
βοΈ Just add your content there and SaaSFast will automatically generate a blog for you.
π For more details, check the blog section.
```