We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38bf3b9 commit e14f5d9Copy full SHA for e14f5d9
app/robots.ts
@@ -0,0 +1,13 @@
1
+import type {MetadataRoute} from 'next'
2
+
3
+export default function robots(): MetadataRoute.Robots {
4
+ const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://yoursite.com'
5
+ return {
6
+ rules: {
7
+ userAgent: '*',
8
+ allow: '/',
9
+ disallow: '/private/',
10
+ },
11
+ sitemap: `${baseUrl}/sitemap.xml`,
12
+ }
13
+}
0 commit comments