mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
docs robots.txt
This commit is contained in:
parent
e6e30d012d
commit
9244cf07b9
16
docs/src/app/robots.txt/route.ts
Normal file
16
docs/src/app/robots.txt/route.ts
Normal 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
|
||||
},
|
||||
});
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user