Skip to content

Commit 80b0052

Browse files
committed
remove robots txt and add noindex to meta
1 parent 91bfa00 commit 80b0052

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

app/layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Metadata } from 'next';
33

44
import '../styles/globals.css';
55

6-
// A second layer of protection at meta tag level for crawlers
76
export const metadata: Metadata = {
87
robots: {
98
index: false,

app/robots.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { MetadataRoute } from 'next'
22

33
// Function to generate the robots txt file to block crawlers.
44
// Please edit the metadata function in root layout along with changes here
5-
export default function robots(): MetadataRoute.Robots {
6-
return {
7-
rules: {
8-
userAgent: '*',
9-
disallow: '/',
10-
}
11-
}
12-
}
5+
// export default function robots(): MetadataRoute.Robots {
6+
// return {
7+
// rules: {
8+
// userAgent: '*',
9+
// disallow: '/',
10+
// }
11+
// }
12+
// }

0 commit comments

Comments
 (0)