mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
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
7 lines
126 B
TypeScript
7 lines
126 B
TypeScript
export async function GET() {
|
|
return new Response(`User-agent: *
|
|
Allow: /
|
|
|
|
Sitemap: https://www.example.com/sitemap.xml`)
|
|
}
|