summaryrefslogtreecommitdiff
path: root/src/pages/robots.txt.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/robots.txt.ts')
-rw-r--r--src/pages/robots.txt.ts11
1 files changed, 11 insertions, 0 deletions
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
+ `);
+}