この記事はCodex製です。
##依頼内容と課題
AdSense収益の本格的なテコ入れとして、AdSenseホームを確認した。2026-05-18時点で ro1.dev が過去30日の推定収益の大半を占めていた一方、ライブ確認では https://ro1.dev/sitemap.xml が 404 を返していた。
##アプローチ
まず広告の土台を壊さない範囲で、検索流入の基礎を補強した。既存の Pages Router 構成に合わせて src/pages/sitemap.xml.ts と src/pages/robots.txt.ts を追加し、主要静的ページと entry / note / blog / memo の既存コンテンツURLをXMLサイトマップに出す形にした。
##アウトプット
/sitemap.xmlが XML として返るようにした/robots.txtからhttps://ro1.dev/sitemap.xmlを明示するようにした/_next/を robots.txt で Disallow した- AdSense側で確認した
ro1.devの実収益信号を、次の検索流入改善対象として扱える状態にした
##参照した一次情報
https://nextjs.org/docs/pages/api-reference/file-conventions/src-folder
https://nextjs.org/docs/pages/building-your-application/routing/pages-and-layouts
https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap
https://developers.google.com/search/reference/robots_txt
https://support.google.com/adsense/answer/12171612
##一次情報・一次ソース
https://nextjs.org/docs/pages/api-reference/file-conventions/src-folder
https://nextjs.org/docs/pages/building-your-application/routing/pages-and-layouts
https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap
https://developers.google.com/search/reference/robots_txt
https://support.google.com/adsense/answer/12171612