feat(seo): implement google analytics, sitemap, robots and json-ld structured data

This commit is contained in:
Poyraz Avsever
2026-03-30 11:28:05 +03:00
parent e08b9ae708
commit a23665ee9e
6 changed files with 162 additions and 3 deletions
+16
View File
@@ -0,0 +1,16 @@
import type { MetadataRoute } from "next";
const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL || "https://poyrazavsever.com";
export default function robots(): MetadataRoute.Robots {
return {
rules: [
{
userAgent: "*",
allow: "/",
disallow: ["/api/", "/_next/"],
},
],
sitemap: `${SITE_URL}/sitemap.xml`,
};
}