Skip to content

Commit

Permalink
docs: Add robots.txt (#1338)
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn authored Sep 16, 2024
1 parent 43b268e commit d9f388a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/app/robots.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import {MetadataRoute} from 'next';

export default function robots(): MetadataRoute.Robots {
if (process.env.VERCEL_ENV !== 'production') {
return {
rules: {
userAgent: '*',
disallow: '/'
}
};
} else {
return {
rules: {
userAgent: '*',
allow: '/'
}
};
}
}

0 comments on commit d9f388a

Please sign in to comment.