From e55874883b8c91577f7125adfecc11ffd55601b2 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Thu, 31 Aug 2023 10:22:33 +0100 Subject: fixes robots.txt --- src/pages/robots.txt.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/pages/robots.txt.ts (limited to 'src/pages/robots.txt.ts') diff --git a/src/pages/robots.txt.ts b/src/pages/robots.txt.ts new file mode 100644 index 0000000..c7e396f --- /dev/null +++ b/src/pages/robots.txt.ts @@ -0,0 +1,11 @@ +import type { APIContext } from 'astro'; + +export async function get(context: APIContext) { + return new Response(` + User-agent: * + User-agent: AdsBot-Google + Disallow: */payment-success-confirmation + + Sitemap: ${context.site}sitemap-index.xml + `); +} -- cgit v1.2.3