diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-31 10:22:33 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-31 10:22:33 +0100 |
| commit | e55874883b8c91577f7125adfecc11ffd55601b2 (patch) | |
| tree | 2e4bb81ec4a376b1a6596d2dbff9975d41c964a8 /src | |
| parent | 30a256d434f5cab7feeef16836fbf1e00ad5f83b (diff) | |
fixes robots.txt
Diffstat (limited to 'src')
| -rw-r--r-- | src/pages/robots.txt | 5 | ||||
| -rw-r--r-- | src/pages/robots.txt.ts | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/src/pages/robots.txt b/src/pages/robots.txt deleted file mode 100644 index 1055a1f..0000000 --- a/src/pages/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -User-agent: * -User-agent: AdsBot-Google -Disallow: */payment-success-confirmation - -Sitemap: https://scotsleidassocie.org/sitemap-index.xml 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 + `); +} |
