From 5abce4bf654236b7873cb5cc5678d075ef9c9c6b Mon Sep 17 00:00:00 2001 From: Ryan Freeman Date: Mon, 31 Jul 2023 22:29:00 +0100 Subject: [PATCH] Added robots.ts --- app/robots.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 app/robots.ts diff --git a/app/robots.ts b/app/robots.ts new file mode 100644 index 0000000..4036d2f --- /dev/null +++ b/app/robots.ts @@ -0,0 +1,12 @@ +import { MetadataRoute } from 'next' + +export default function robots(): MetadataRoute.Robots { + return { + rules: { + userAgent: '*', + allow: '/', + disallow: '/private/', + }, + sitemap: 'https://ryanfreeman.dev/sitemap.xml', + } +} \ No newline at end of file