Files
Jiachi LiuandGitHub 93152db9b1 Fix bad route path for custom metadata routes (#47286)
We introduced static route `robots.txt` and dynamic route `robots.js` for metadata, it should still allow users to create their own customized version. This issue is caused by a route conflicts. Only append `/route` to page path when there's not ending with `/route`


Fixes #47198
Closes NEXT-850
2023-03-21 15:55:32 +00:00

7 lines
126 B
TypeScript

export async function GET() {
return new Response(`User-agent: *
Allow: /
Sitemap: https://www.example.com/sitemap.xml`)
}