first commit

This commit is contained in:
2026-09-11 15:49:41 +08:00
commit 5b69bc818a
98 changed files with 30551 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import type { APIRoute } from "astro";
export const GET: APIRoute = ({ site }) => {
const origin = (site ?? new URL("https://example.com")).toString().replace(/\/$/, "");
return new Response(
`User-agent: *
Allow: /
Disallow: /admin
Sitemap: ${origin}/sitemap.xml
`,
{ headers: { "Content-Type": "text/plain; charset=utf-8" } },
);
};