mirror of
https://github.com/michaelrausch/michaelrausch-24.git
synced 2025-02-24 21:43:14 +00:00
16 lines
316 B
TypeScript
16 lines
316 B
TypeScript
![]() |
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",
|
||
|
},
|
||
|
});
|
||
|
};
|