Skip to content

Commit

Permalink
Merge branch 'main' into boooop
Browse files Browse the repository at this point in the history
  • Loading branch information
artmsilva authored Dec 11, 2024
2 parents fa19564 + 901504f commit ff66778
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.washingtonpost.com/components/next-seo/defaultSeo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ interface DefaultSeoProps {
}

export const DefaultSeo: React.FC<DefaultSeoProps> = ({ seoConfig }) => {
const env = process.env.VERCEL_ENV || "";

return (
<Head>
<title>{seoConfig.defaultTitle}</title>
Expand All @@ -54,7 +56,12 @@ export const DefaultSeo: React.FC<DefaultSeoProps> = ({ seoConfig }) => {
content={seoConfig.twitter.description}
/>
<meta name="twitter:creator" content={seoConfig.twitter.handle} />
<meta name="robots" content="index,follow" />
<meta
name="robots"
content={`${
env === "production" ? "index,follow" : "noindex, nofollow"
}`}
/>
</Head>
);
};

0 comments on commit ff66778

Please sign in to comment.