docs robots.txt

This commit is contained in:
Konstantin Wohlwend 2025-08-11 14:20:18 -07:00
parent e6e30d012d
commit 9244cf07b9

View File

@ -0,0 +1,16 @@
import { deindent } from "@stackframe/stack-shared/dist/utils/strings";
import { NextRequest } from "next/server";
export async function GET({}: NextRequest) {
const robotsContent = deindent`
User-agent: *
Allow: /
`;
return new Response(robotsContent, {
headers: {
"Content-Type": "text/plain",
"Cache-Control": "public, max-age=3600", // Cache for 1 hour
},
});
}