Files
property-management-network/app/robots.txt/route.ts
T

22 lines
477 B
TypeScript
Raw Normal View History

export async function GET() {
const appUrl = process.env.NEXT_PUBLIC_APP_URL ?? "https://propertymanagement.network"
const body = `User-agent: *
Allow: /
Disallow: /dashboard
Disallow: /properties
Disallow: /tenants
Disallow: /rent
Disallow: /maintenance
Disallow: /leases
Disallow: /expenses
Disallow: /settings
Disallow: /tenant-portal/
Disallow: /api/
Sitemap: ${appUrl}/sitemap.xml`
return new Response(body, {
headers: { "Content-Type": "text/plain" },
})
}