All pages are optimized for SEO by default. The codebase comes with tools
to automatically import the right metadata tags, generate a sitemap and
dynamig OG banners.
Metadata
By default, thelayout.tsx
file will import the metadata specified in config.ts
. Additionally, demo apps import & overwrite the default metadata with the values specified in their respective toolConfig.ts
file.
You can override the default meta tags by exporting a metadata
object
in your
pages.tsx
file.app/layout.tsx
Sitemap
Under/app/sitemap.ts
you’ll find the script to generate your sitemap. It automatically generates an entry for each of your blog pages, and you can add static pages or modify it as desired.
app/sitemap.ts
Dynamic OG images
Under/app/api/og/route.ts
you’ll find the code used to generate dynamic OG images for your website. We use the next/og
library for this. You can find examples of usage here.