12 lines
361 B
TypeScript
12 lines
361 B
TypeScript
export default defineEventHandler((event) => {
|
|
const config = useRuntimeConfig();
|
|
const siteUrl = (config.public.siteUrl as string) || "https://777genius.github.io/agent-teams-ai";
|
|
|
|
setHeader(event, "content-type", "text/plain; charset=utf-8");
|
|
|
|
return `User-agent: *
|
|
Allow: /
|
|
Sitemap: ${siteUrl}/sitemap.xml
|
|
Sitemap: ${siteUrl}/docs/sitemap.xml
|
|
`;
|
|
});
|