From 1321db55aadf47e8a558c8c7b8ea9d3e7e30f8de Mon Sep 17 00:00:00 2001 From: kunalkeshan Date: Thu, 24 Sep 2026 07:12:42 +0530 Subject: [PATCH] chore: disable indexing and update site URL for v1.kunalkeshan.dev move - robots.txt: disallow all crawlers, update sitemap URL - _document.tsx: set robots meta to noindex, nofollow; metaWebsite now reads NEXT_PUBLIC_SITE_URL with v1.kunalkeshan.dev fallback - sitemap.xml.ts: update SITE_URL fallback to v1.kunalkeshan.dev - .env.sample: document new NEXT_PUBLIC_SITE_URL var Closes #167 --- .env.sample | 3 ++- pages/_document.tsx | 5 +++-- pages/sitemap.xml.ts | 3 ++- public/robots.txt | 7 ++----- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.env.sample b/.env.sample index f96406d..f2388ca 100644 --- a/.env.sample +++ b/.env.sample @@ -1,3 +1,4 @@ ADMIN_PASSWORD="" IRON_SESSION_COOKIE_PASSWORD="" -SANITY_ACCESS_TOKEN="" \ No newline at end of file +SANITY_ACCESS_TOKEN="" +NEXT_PUBLIC_SITE_URL="https://v1.kunalkeshan.dev" \ No newline at end of file diff --git a/pages/_document.tsx b/pages/_document.tsx index 7a8f8dc..0865fec 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -5,7 +5,8 @@ import { GA_TRACKING_ID } from "../utils/gtag"; const metaDescription = "Full-stack dev with a passion for delivering value & helping others thrive. As a 3rd-year Electronics & Communication Engineering student at SRMIST, I offer top-notch full-stack web dev services with a focus on consistency, discipline, grit & hard work. Codelance Devs, my web design co., helps SMEs establish a web presence. I aim to be a knowledgeable software dev & assist startups & enterprises. Passionate about tech education, open-source, productivity & building openly. Improving my skills & sharing my expertise in full-stack dev."; const metaImage = "/thumbnail.png"; -const metaWebsite = `https://kunalkeshan.dev`; +const metaWebsite = + process.env.NEXT_PUBLIC_SITE_URL ?? "https://v1.kunalkeshan.dev"; export default function Document() { return ( @@ -48,7 +49,7 @@ export default function Document() { - +