Initial commit

This commit is contained in:
Thuan Bui
2026-03-13 11:19:35 +09:00
committed by GitHub
commit 36b45142d9
89 changed files with 15695 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import type { APIRoute } from "astro";
import { siteConfig } from "@/config/site";
const robotsTxt = `
User-agent: *
Allow: /
Sitemap: ${new URL("sitemap-index.xml", siteConfig.url).href}
`.trim();
export const GET: APIRoute = () => {
return new Response(robotsTxt, {
headers: {
"Content-Type": "text/plain; charset=utf-8",
},
});
};