Skip to content

Commit

Permalink
feat: add site metadata for Twitter and implement X-Robots-Tag headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dvaJi committed Nov 18, 2024
1 parent 69401c0 commit 63d90db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export function genPageMetadata({
description,
openGraph,
twitter: {
site: "@earlyggcom",
title: `${title} | ${siteMetadata.title}`,
description: description || siteMetadata.description,
card: "summary_large_image",
Expand Down
13 changes: 13 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,19 @@ const nextConfig = {
permanent: true,
},
],
async headers() {
return [
{
source: "/(.*)",
headers: [
{
key: "X-Robots-Tag",
value: "index, follow",
},
],
},
];
},
eslint: { ignoreDuringBuilds: !!process.env.CI },
typescript: { ignoreBuildErrors: !!process.env.CI },
// cacheHandler:
Expand Down

0 comments on commit 63d90db

Please sign in to comment.