Optimize your website for search engines
layout.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.
pages.tsx
file./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/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.