Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manages Next.js SEO by configuring sitemaps, OpenGraph metadata, JSON-LD structured data, server-side rendering, and robots.txt.
45% 91%+45 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 10 of 22 without it.
In a Next.js robots configuration file, which specific environment variable should be referenced to dynamically point search crawlers to the sitemap XML URL?
References process.env.NEXT_PUBLIC_APP_URL for sitemap location
3 of 3 safety checks passed
This skill ensures your Next.js application is optimized for search engines. It covers sitemaps, metadata (OpenGraph), server-side rendering (SSR/ISR), structured data (JSON-LD), and robots.txt configuration.
src/app/sitemap.ts.layout.tsx for defaults; override in page.tsx.next-seo components (JSON-LD) on every content page.src/app/robots.ts to guide crawlers.File: src/app/sitemap.ts
When adding a new public route (e.g., /features), add it to the staticPages array.
const staticPages = [
"", // Home
"/features", // New page
// ...
];
If you have >50k URLs (e.g., user profiles, products), use generateSitemaps.
File: src/app/products/sitemap.ts
import { BASE_URL } from '@/lib/constants';
export async function generateSitemaps() {
// Fetch total count and divide by batch size (e.g., 50,000)
return [{ id: 0 }, { id: 1 }];
}
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.