feat: add full SEO (generateMetadata, OG, Twitter Card, JSON-LD, sitemap, robots, llms.txt)

This commit is contained in:
mstfyldz
2026-06-05 17:41:41 +03:00
parent 376b620a6a
commit a9a2c08e5f
6 changed files with 415 additions and 15 deletions
+19
View File
@@ -0,0 +1,19 @@
import { MetadataRoute } from 'next';
import { prisma } from '@/lib/db';
export default async function robots(): Promise<MetadataRoute.Robots> {
const settings = await prisma.siteSettings.findFirst();
const siteUrl = settings?.siteUrl || 'https://moybeach.com';
return {
rules: [
{
userAgent: '*',
allow: '/',
disallow: ['/admin/', '/api/'],
},
],
sitemap: `${siteUrl}/sitemap.xml`,
host: siteUrl,
};
}