21 lines
451 B
TypeScript
21 lines
451 B
TypeScript
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: /api/
|
||
|
|
|
||
|
|
Sitemap: ${appUrl}/sitemap.xml`
|
||
|
|
|
||
|
|
return new Response(body, {
|
||
|
|
headers: { "Content-Type": "text/plain" },
|
||
|
|
})
|
||
|
|
}
|