switched to astro

This commit is contained in:
Timothy Rogers 2024-07-06 23:03:52 -04:00
parent 9c8264f186
commit 46daf98523
196 changed files with 14792 additions and 19285 deletions

16
src/pages/robots.txt.ts Normal file
View file

@ -0,0 +1,16 @@
import type { APIRoute } from 'astro';
const robotsTxt = `
User-agent: *
Allow: /
Sitemap: ${new URL('sitemap-index.xml', import.meta.env.SITE).href}
`.trim();
export const GET: APIRoute = () => {
return new Response(robotsTxt, {
headers: {
'Content-Type': 'text/plain; charset=utf-8',
},
});
};