Initial export from WebStudio.is

This commit is contained in:
deterge
2025-10-08 18:18:41 -04:00
parent bb56cf1878
commit 903e016eec
54 changed files with 90905 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import type { LoaderFunctionArgs } from "react-router";
export const loader = (arg: LoaderFunctionArgs) => {
const host =
arg.request.headers.get("x-forwarded-host") ||
arg.request.headers.get("host") ||
"";
return new Response(
`
User-agent: *
Disallow: /api/
Sitemap: https://${host}/sitemap.xml
`,
{
headers: {
"Content-Type": "text/plain",
},
status: 200,
}
);
};