Next.jsでsitemap.xmlとrobots.txtを実装する
うっかり実装を忘れていたsitemap.xmlとrobots.txtをNext.jsのApp Routerを使用して実装しました。合わせて、検索エンジン最適化のためのベストプラクティスもまとめています。
This blog shares daily discoveries and insights ranging from technology information about AWS and Apple products to guitar playing, photography, and book reviews.
うっかり実装を忘れていたsitemap.xmlとrobots.txtをNext.jsのApp Routerを使用して実装しました。合わせて、検索エンジン最適化のためのベストプラクティスもまとめています。
Captured at the moment when industrial silhouettes merge with the water's surface at dusk. There's a unique beauty in these boundaries where the artificial meets the natural, the rigid meets the fluid. Experience the poetry of contours hidden in everyday landscapes.
このブログでは直接App Router配下に記事を書いていますが、 ヘッドレスCMSを使うことも検討して諦めました。 今回、ライトにつぶやき程度であればできそうかなとContentfulを使って実装してみ ました。
textlintを活用して日本語の技術ブログ記事の品質を向上させる方法を紹介します。 特にこのブログではMarkdownでなくMDXを使用しているので、MDXファイルに対する最適な設定と導入手順を解説します。
Next.js 15.2.3未満で認証をバイパスできる脆弱性の通知がGitHubから飛んできたので、一応このブログもアップデートしました。