Files
Montech_Landing/apps/landing/server/routes/robots.txt.ts
T
MahdiandCursor 7e8e1b1f1b Initial Montech monorepo: Nuxt landing, Vue admin, Nest API.
Scaffold SSR site with CMS/blog/gallery/SEO admin and deploy configs for montech.ir.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 18:42:28 +03:30

7 lines
284 B
TypeScript

export default defineEventHandler((event) => {
const config = useRuntimeConfig();
const site = config.public.siteUrl || "https://montech.ir";
setHeader(event, "Content-Type", "text/plain");
return `User-agent: *\nAllow: /\nDisallow: /adm\nSitemap: ${site}/sitemap.xml\n`;
});